align sb-cpu
This commit is contained in:
parent
1e71eeaf6e
commit
b9245d3d92
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue