diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-05-17 22:30:45 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-05-17 22:30:45 -0400 |
commit | bdde8aa04aaa3b01cdeebcad531846b1fbabce5d (patch) | |
tree | 5b91e7a82c436f3690dd1106a832df5c6188dad7 | |
parent | 58567fc876e7290ca1b9330b2986ac5f53b0ac5f (diff) |
fix CPU monitor for wmii
-rwxr-xr-x | .wmii/wmiirc_local | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.wmii/wmiirc_local b/.wmii/wmiirc_local index 8e1321c..533b546 100755 --- a/.wmii/wmiirc_local +++ b/.wmii/wmiirc_local @@ -21,7 +21,7 @@ status() { # This doesn't work for me, it shows capacity #echo -n 'Core MHz:' $(cat /proc/cpuinfo | grep 'cpu MHz' | sed 's/.*: //g; s/\..*//g;') # This actually displays %idle - echo -n 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -u 's/ */\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' + echo -n 'CPU: [ '$(tail -n3 ~/tmp/cputime|sed -ur 's/\s\s+/\t/g'|cut -f2,11|sed 's/\t\(.*\)/(\1)/')' ]' #echo -n ' | ' |