diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-15 20:27:06 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-15 20:27:06 -0400 |
commit | 0ce7b10e4804e1cc5e7410ee0b9817889c7c721c (patch) | |
tree | 8fdbc3c24a1d89dae04e0cfe9239b647c7427af6 /.wmii/rbar_cpu | |
parent | 33febe8b8a5a6a237d6e3617f7c96e783a548378 (diff) | |
parent | 3515a46d330af1d09bf1e0b963c13a86c2dbe8a8 (diff) |
Merge branch 'master' into thinkpenguin-par-2
Diffstat (limited to '.wmii/rbar_cpu')
-rwxr-xr-x | .wmii/rbar_cpu | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.wmii/rbar_cpu b/.wmii/rbar_cpu index 7f891da..22da985 100755 --- a/.wmii/rbar_cpu +++ b/.wmii/rbar_cpu @@ -3,11 +3,10 @@ priority=$1 -set -e -while true; do +while connected_to_x_server; do # This doesn't work for me, it shows capacity - #echo -n 'Core MHz:' $(cat /proc/cpuinfo | grep 'cpu MHz' | sed 's/.*: //g; s/\..*//g;') |a "$WMII_DIR/rbar/${priority}_cpu" + #echo -n 'Core MHz:' $(cat /proc/cpuinfo | grep 'cpu MHz' | sed 's/.*: //g; s/\..*//g;') >> "$WMII_DIR/rbar/${priority}_cpu" # This actually displays %idle - echo 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' |a "$WMII_DIR/rbar/${priority}_cpu" + echo 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' >> "$WMII_DIR/rbar/${priority}_cpu" sleep 1 done |