diff --git a/bench.sh b/bench.sh index 6cf2d03..783f9a0 100644 --- a/bench.sh +++ b/bench.sh @@ -86,7 +86,7 @@ if [ -e '/usr/bin/wget' ]; then tram=$( free -m | awk '/Mem/ {print $2}' ) swap=$( free -m | awk '/Swap/ {print $2}' ) up=$( awk '{a=$1/86400;b=($1%86400)/3600;c=($1%3600)/60;d=$1%60} {printf("%ddays, %d:%d:%d\n",a,b,c,d)}' /proc/uptime ) - load=$( w | head -1 | awk -F: '{print $4}' | sed 's/^[ \t]*//;s/[ \t]*$//' ) + load=$( w | head -1 | awk -F'load average:' '{print $2}' | sed 's/^[ \t]*//;s/[ \t]*$//' ) opsy=$( get_opsy ) arch=$( uname -m ) lbit=$( getconf LONG_BIT )