-
- Downloads
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): #55 Signed-off-by:Jim Warner <james.warner@comcast.net>
Loading