about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--dwm-status.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm-status.sh b/dwm-status.sh
index 9d2e035..422d79c 100644
--- a/dwm-status.sh
+++ b/dwm-status.sh
@@ -469,7 +469,7 @@ EOF
 module_uptime() {
     if [ "$1" = "force" ]; then
         # Get system uptime and store to file.
-        system_uptime=$(uptime -p | sed -e 's/up//g' -e 's/days/d/g' -e 's/day/d/g' -e 's/hours/h/g' -e 's/hour/h/g' -e 's/minutes/m/g' -e 's/minute/m/g')
+        system_uptime=$(uptime -p | sed -e 's/up//g' -e 's/ days/d/g' -e 's/ day/d/g' -e 's/ hours/h/g' -e 's/ hour/h/g' -e 's/ minutes/m/g' -e 's/ minute/m/g')
 
         printf "%s" "$system_uptime" > "$CACHE_UPTIME_FILE"
     else