]> granicus.if.org Git - procps-ng/commit
top: streamline the approach to tracking relative enum
authorJim Warner <james.warner@comcast.net>
Sun, 27 Sep 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 5 Oct 2015 10:30:53 +0000 (21:30 +1100)
commit683b3fd4f2a5fd8736d6a7f27847dff497227789
treed09b3a5be2028da2871d776afefaa5ab71c77eb2
parentf7fcb336526b3d9012eed409629774dfb4528a4b
top: streamline the approach to tracking relative enum

Two separate entries under the Fieldstab were employed
to manage 'relative' enumerators under that new <pids>
interface. However, just a single entry could actually
serve both needs with a negative 'not selected' value.

So this commit just borrows the approach used with the
ps conversion where -1 is now representing unselected.

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