top: show fewer decimal places for memory (by default)
After much reflection I've come to the conclusion that displaying 3 decimal places (usually) when memory data had been scaled is no longer optimal with today's ever increasing amounts. And given that not all task memory fields are the same widths, inconsistencies can easily arise as illustrated and discussed in the issue below. Instead of unilaterally reducing the number of decimal places, this commit will sneak in such a change via an existing configure option that was very likely unused. The former 'disable-wide-memory' option has now become 'enable-wide-memory', which can be used if the current behavior (3 decimal places) is preferred. Without that option, whenever memory is scaled beyond KiB, just one decimal place will be shown in Summary and Task areas. And Task area field width will no longer be changed by this revised configure option. Instead, all such field widths will now be fixed at the former maximum values. Reference(s): https://gitlab.com/procps-ng/procps/issues/50 Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
1
NEWS
1
NEWS
@@ -11,6 +11,7 @@ procps-ng-NEXT
|
||||
* pgrep: warn about 15+ char name only if -f not used
|
||||
* pkill: Return 0 only if we can kill process Debian #852758
|
||||
* kill: -l space between name parses correctly Debian #854407
|
||||
* top: show fewer memory decimal places (configurable)
|
||||
|
||||
procps-ng-3.3.12
|
||||
----------------
|
||||
|
Reference in New Issue
Block a user