aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel/load
diff options
context:
space:
mode:
authorvaskozl <vasil.zlatanov@gmail.com>2015-03-22 22:37:54 +0100
committervaskozl <vasil.zlatanov@gmail.com>2015-03-22 22:37:54 +0100
commite366454a04173840e41cbe2394dba4a476b76937 (patch)
tree209f68a8726ed15ca1db1a70580bcfaa9a4ddaec /ratpoison/panel/load
parent89ef190e34412cf3ac63a5961a98a52e84a43746 (diff)
parenta351f6a842d3f5a0edc1360515585a6355dea04a (diff)
downloaddotfiles-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-xratpoison/panel/load2
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