]> granicus.if.org Git - procps-ng/commit
top: add '!' toggle for combined cpus display, program
authorJim Warner <james.warner@comcast.net>
Thu, 21 May 2020 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Thu, 28 May 2020 09:37:58 +0000 (19:37 +1000)
commit5e1e14b0197672aea4fca3e1983375d358faac57
tree168b4be044876c37aac90f28943e4abb042f857b
parentf93980910e8bc77697b9feccbf54076797ddcfda
top: add '!' toggle for combined cpus display, program

When implementing that earlier '4' toggle, in response
to the issue referenced below, I got to thinking about
those environments with massively parallel processors.

Such environments may not benefit from the '4' toggle.

So, I decided to implement a feature that could enable
use of those '1' and/or '4' toggles no matter how many
active processors top may have ultimately encountered.

With the new '!' toggle, adjacent cpus can be combined
to any degree, represented as a single cpu group/line.

Reference(s):
https://gitlab.com/procps-ng/procps/-/issues/172

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