1
0
Fork 0

align sb-cpu

This commit is contained in:
Luca Bilke 2024-02-03 19:25:22 +01:00
parent 1e71eeaf6e
commit b9245d3d92
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ temp=$(sensors | awk '/CPU/ {printf ("%.f°C", $2)}' | tr -d "+")
stats=$(awk '/cpu[0-9]+/ {printf "%d %d %d\n", substr($1,4), ($2 + $3 + $4 + $5), $5 }' /proc/stat 2>/dev/null)
[ ! -f $cache ] && echo "$stats" >"$cache"
old=$(cat "$cache")
printf "%b" " $temp"
printf "%b" " $temp"
first=true
echo "$stats" | while read -r row; do