Merge branch 'dev' into thesis

status: fix spaces in sb-cpu
mail [WIP]: fix filtering
This commit is contained in:
David JULIEN 2022-11-21 10:20:39 +01:00
commit 8e83187344
No known key found for this signature in database
GPG Key ID: 1DD6B2BA6DD78810
2 changed files with 1 additions and 1 deletions

View File

@ -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#* }