top: revert %CPU and %MEM precision to former defaults
authorJim Warner <james.warner@comcast.net>
Tue, 14 May 2013 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 18 May 2013 23:40:42 +0000 (09:40 +1000)
commit77abe18d0150fa162fcf399eb52c7521501ba789
treefc16aa55efe4c2c922635da35c370501a82af5c9
parent3993fb0c8e72cb5ba22a49c6328c5e3ff4df8e99
top: revert %CPU and %MEM precision to former defaults

When summary & task area memory scaling was introduced
in release 3.3.6, the percentage columns were expanded
to provide 3 decimal places of precision. In hindsight
that may have been overkill, making those columns more
of a distraction than useful, with just too much info.

This patch will revert those columns to the former one
decimal place. And as was true, that decimal point may
be sacrificed depending on the number of cpus present.

And, in case anyone might prefer additional precision,
a build option can provide it (--enable-wide-percent).

Reference(s):
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=707648
http://www.freelists.org/post/procps/What-happened-to-my-top,1
commit 21e550bc080eb30f503b2ca6fe4e9cb12b8a1616

Signed-off-by: Jim Warner <james.warner@comcast.net>
configure.ac
top/top.c
top/top.h