diff options
Diffstat (limited to 'ratpoison/panel')
-rwxr-xr-x | ratpoison/panel/cpu | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ratpoison/panel/cpu b/ratpoison/panel/cpu index 908f207..fe018a5 100755 --- a/ratpoison/panel/cpu +++ b/ratpoison/panel/cpu @@ -1,5 +1,3 @@ while true; do -echo -n 'C' -ps -eo pcpu |grep -vE '^\s*(0.0|%CPU)' |sed -n '1h;$!H;$g;s/\n/ +/gp' | bc -sleep 2; +mpstat -P ALL 2 1 | grep "Average.*all" | awk '{print "C"$3+$5}' done |