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 21e550bc08
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -195,6 +195,14 @@ if test "x$enable_sigwinch" = xyes; then
|
||||
AC_DEFINE(SIGNALS_LESS, 1, [reduce impact of x-windows resize operations on top])
|
||||
fi
|
||||
|
||||
AC_ARG_ENABLE([wide-percent],
|
||||
AS_HELP_STRING([--enable-wide-percent], [provide extra precision under %CPU and %MEM for top]),
|
||||
[enable_wide_percent=yes], []
|
||||
)
|
||||
if test "x$enable_wide_percent" = xyes; then
|
||||
AC_DEFINE(BOOST_PERCNT, 1, [provide extra precision under %CPU and %MEM for top])
|
||||
fi
|
||||
|
||||
DL_LIB=
|
||||
AC_ARG_ENABLE([numa],
|
||||
AS_HELP_STRING([--disable-numa], [disable NUMA/Node support in top]),
|
||||
|
||||
Reference in New Issue
Block a user