aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]modules/day_of_week0
-rwxr-xr-xmodules/daypercentage2
-rwxr-xr-x[-rw-r--r--]modules/default_shell0
-rwxr-xr-x[-rw-r--r--]modules/os-release0
-rwxr-xr-x[-rw-r--r--]modules/process_count0
5 files changed, 1 insertions, 1 deletions
diff --git a/modules/day_of_week b/modules/day_of_week
index 160da42..160da42 100644..100755
--- a/modules/day_of_week
+++ b/modules/day_of_week
diff --git a/modules/daypercentage b/modules/daypercentage
index 0b7b426..5a2316f 100755
--- a/modules/daypercentage
+++ b/modules/daypercentage
@@ -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')%"
}
diff --git a/modules/default_shell b/modules/default_shell
index 913ccb2..913ccb2 100644..100755
--- a/modules/default_shell
+++ b/modules/default_shell
diff --git a/modules/os-release b/modules/os-release
index 165a7c3..165a7c3 100644..100755
--- a/modules/os-release
+++ b/modules/os-release
diff --git a/modules/process_count b/modules/process_count
index 7d4d0ca..7d4d0ca 100644..100755
--- a/modules/process_count
+++ b/modules/process_count