diff options
author | vaskozl <vasil.zlatanov@gmail.com> | 2015-03-22 22:37:54 +0100 |
---|---|---|
committer | vaskozl <vasil.zlatanov@gmail.com> | 2015-03-22 22:37:54 +0100 |
commit | e366454a04173840e41cbe2394dba4a476b76937 (patch) | |
tree | 209f68a8726ed15ca1db1a70580bcfaa9a4ddaec /ratpoison/panel/load | |
parent | 89ef190e34412cf3ac63a5961a98a52e84a43746 (diff) | |
parent | a351f6a842d3f5a0edc1360515585a6355dea04a (diff) | |
download | dotfiles-e366454a04173840e41cbe2394dba4a476b76937.tar.gz dotfiles-e366454a04173840e41cbe2394dba4a476b76937.tar.bz2 dotfiles-e366454a04173840e41cbe2394dba4a476b76937.zip |
Merge branch 'master' of github.com:Vaskozl/dotfiles
Diffstat (limited to 'ratpoison/panel/load')
-rwxr-xr-x | ratpoison/panel/load | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ratpoison/panel/load b/ratpoison/panel/load index 3977bee..a1dbcdb 100755 --- a/ratpoison/panel/load +++ b/ratpoison/panel/load @@ -1,6 +1,6 @@ #!/bin/bash while true; do -cpu=`mpstat -P ALL 2 1 | grep "Average.*all" | awk '{print $3+$5}'` +cpu=`mpstat -P ALL 10 1 | grep "Average.*all" | awk '{print $3+$5}'` mem=`free | grep Mem | awk '{print $3/$2 * 100.0}'` printf "C%.*f\n" 1 $cpu printf "R%.*f\n" 0 $mem |