From fff6cc7ca8f3cd432c3262f1e2508fb02aa35df3 Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Fri, 18 Nov 2022 12:14:53 +0100 Subject: [PATCH] [status] fix: space in sb-cpu --- .local/bin/statusbar/sb-cpu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/statusbar/sb-cpu b/.local/bin/statusbar/sb-cpu index 7648df1..d19f7a7 100755 --- a/.local/bin/statusbar/sb-cpu +++ b/.local/bin/statusbar/sb-cpu @@ -12,7 +12,7 @@ cache=/tmp/cpubarscache stats=$(awk '/cpu[0-9]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat) [ ! -f $cache ] && echo "$stats" > "$cache" old=$(cat "$cache") -printf " %s " " " +printf " %s " "" echo "$stats" | while read -r row; do id=${row%% *} rest=${row#* }