]> granicus.if.org Git - procps-ng/commit
top: do not co-mingle strings/numbers under namespaces
authorJim Warner <james.warner@comcast.net>
Thu, 3 Sep 2015 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sun, 6 Sep 2015 11:57:09 +0000 (21:57 +1000)
commitb2853ed1170ff900100fa69fee5a8dfd728bd120
tree390669aa5a633400896cbb9607725425aae9f805
parent1bfc9235b43c32adafe041696b88551a36518d60
top: do not co-mingle strings/numbers under namespaces

Craig's recent commit under that newlib branch dealing
with namespace support has prompted me to review top's
handling of those fields. Currently, when such a field
is zero, top displays a dash ('-'). This will mean the
justification toggles ('j/J') will behave incorrectly.

This patch simply allows the potential zero to display
or be suppressed with the already existing '0' toggle.

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