correct display for cpumon_lite
[debian6500.git] / master / root / bin / cpumon_lite
index d9919a41332b8d4bce55abfef4969ee1caaffb1f..e4509524d35fe195af0ecdf410e24349a274e48a 100755 (executable)
@@ -13,7 +13,7 @@ BEGIN { printf "cpu:" }
        sum=0; for (i=2;i<=NF;i++) sum+=$(i)
        load=(sum-idle)*100/sum
        tot+=load
-       if (not_first) not_first=1; else printf " +"
+       if (!not_first) not_first=1; else printf " +"
        printf " % 5.1f%%", load
 }
 END { printf " = % 6.1f%%\n", tot }'