aboutsummaryrefslogtreecommitdiff
path: root/ratpoison/panel/load
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2015-03-29 11:29:09 +0200
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2015-03-29 11:29:09 +0200
commit0b50bfaefb2d117c2101f9b34d9fdf2b27d44f39 (patch)
tree48efd0d512e33fa687fb25e570614f22149e449d /ratpoison/panel/load
parent58c29ee0d464d08c08f30e57018e5597a30e33d8 (diff)
downloaddotfiles-0b50bfaefb2d117c2101f9b34d9fdf2b27d44f39.tar.gz
dotfiles-0b50bfaefb2d117c2101f9b34d9fdf2b27d44f39.tar.bz2
dotfiles-0b50bfaefb2d117c2101f9b34d9fdf2b27d44f39.zip
quick
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 a1dbcdb..3977bee 100755
--- a/ratpoison/panel/load
+++ b/ratpoison/panel/load
@@ -1,6 +1,6 @@
#!/bin/bash
while true; do
-cpu=`mpstat -P ALL 10 1 | grep "Average.*all" | awk '{print $3+$5}'`
+cpu=`mpstat -P ALL 2 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