aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/awesome-widgets/widget-cpu_usage2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/awesome-widgets/widget-cpu_usage b/.local/bin/awesome-widgets/widget-cpu_usage
index 53dab4d..4be33eb 100755
--- a/.local/bin/awesome-widgets/widget-cpu_usage
+++ b/.local/bin/awesome-widgets/widget-cpu_usage
@@ -3,7 +3,7 @@
# Cache in tmpfs to improve speed and reduce SSD load
cache=/tmp/cpubarscache
-stats=$(awk '/cpu[0-9]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat)
+stats=$(awk '/cpu[0-7]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat)
[ ! -f $cache ] && echo "$stats" > "$cache"
old=$(cat "$cache")
printf " 🫀 "