Dear Maintainer,
the calculation n my first message is completely bogus because I got the
parenthesis wrong. Sorry.
while true; do grep "^cpu " /proc/stat; sleep 0.5;done\
|awk '{
used=$2+$3+$4+$7+$8
total=used+$5+$6
printf "used=%ld total=%ld load=%ld\n", used, total,
256*(used-prevused)/(total-prevtotal)
prevused=used
prevtotal=total
}'
This gives values of around 5 for the idle machine. So, that's not it.
cu, Stefan
--
Stefan Erben | "A paperless office has about as much | Pyramid Design
Aachen, Germany | chance as a paperless bathroom." (??) | ------------------
[email protected] | -> PGP-key available <- | Software Development
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]