tFixed cpuload - scripts - various script and utils
HTML git clone git://z3bra.org/scripts
DIR Log
DIR Files
DIR Refs
---
DIR commit db8c63abc8d5d18036bb7237de0205d4b8dbfc2b
DIR parent 749f785cb103b0f0a81fd9b34643444e1e1f3901
HTML Author: z3bra <willy@mailoo.org>
Date: Thu, 10 Jul 2014 12:44:10 +0200
Fixed cpuload
Diffstat:
M cpuload | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/cpuload b/cpuload
t@@ -13,7 +13,7 @@ EOF
cpuperc () {
LINE=`ps -eo pcpu |grep -vE '^\s*(0.0|%CPU)' |sed -n '1h;$!H;$g;s/\n/ +/gp'`
- printf "%0.2f%\n" `echo $LINE | bc`
+ echo "`echo $LINE | bc`%"
}
case $1 in