Merge pull request #29 from Baitinq/master

Fixed bug with the daypercentage module
This commit is contained in:
Baitinq 2021-11-02 09:59:09 +00:00 committed by GitHub
commit 36382a2604
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 1 deletions

0
modules/day_of_week Normal file → Executable file
View file

View file

@ -6,7 +6,7 @@ PREFIX=' '
get_daypercentage()
{
MINUTES="$[$(date +%R | cut -d ':' -f1) * 60 + $(date +%R | cut -d ':' -f2) ]"
MINUTES="$[$(date +%R | cut -d ':' -f1 | sed 's/^0*//') * 60 + $(date +%R | cut -d ':' -f2) ]"
echo "$PREFIX$(echo $[ $MINUTES * 100 / 1440 ] | sed 's/\..*//g')%"
}

0
modules/default_shell Normal file → Executable file
View file

0
modules/os-release Normal file → Executable file
View file

0
modules/process_count Normal file → Executable file
View file