From bdde8aa04aaa3b01cdeebcad531846b1fbabce5d Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 17 May 2012 22:30:45 -0400 Subject: fix CPU monitor for wmii --- .wmii/wmiirc_local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ' | ' -- cgit v1.2.3-2-g168b