top: provide -1 command line switch as 'Cpu(s)' toggle
If built without ./configure --disable-modern-top, the
program displays each cpu individually providing there
is sufficient vertical screen real estate. For massive
SMP environments this will necessitate use of a config
file where the cpu summary toggle ('1') could be saved
via the 'W' command. But, an rcfile may not be viable.
So this commit introduces a '1' command line switch to
emulate exactly the effects of the interactive toggle.
And since it is our first numeric switch some existing
parsing logic had to be changed slightly. Such changes
are, in truth, an improvement. For example, instead of
seeing "inappropriate '2'" with ./top -2 we'll now see
the vastly more appropriate error "unknown option '2'.
References(s):
https://gitlab.com/procps-ng/procps/issues/55
[ this patch has been adapted from the master branch ]
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
1 parent
b2bd65407a
commit
5e708c5db7
4 files changed
+23
-8
No files matched your search
@@ -12,6 +12,7 @@ procps-ng-NEXT
|
||||
* pkill: Return 0 only if we can kill process Debian #852758
|
||||
* top: show fewer memory decimal places (configurable)
|
||||
* top: provide command line switch for memory scaling
|
||||
* top: provide command line switch for CPU States
|
||||
|
||||
procps-ng-3.3.12
|
||||
----------------
|
||||
|
||||
Reference in new issue
Block a user