]> granicus.if.org Git - procps-ng/commit
top: make that 'forest view' just a tad more efficient
authorJim Warner <james.warner@comcast.net>
Sat, 8 Oct 2016 15:10:10 +0000 (10:10 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 15 Oct 2016 21:18:31 +0000 (08:18 +1100)
commitc6407ef12513d93ffd74109815b72b2a3b7be43b
tree800f5e37fa3c003c7459e1a3027caf5d48570694
parent98ed114c26c7083f9bd21b66517873b9704717eb
top: make that 'forest view' just a tad more efficient

It makes no sense to begin our tracked nested level at
'1' then later require a '1' to be subtracted from the
level as artwork and indentation is added for display.

By beginning such tracked levels at zero, we can avoid
the need to adjust it & use it directly in a snprintf.

[ this commit parallels a patch in our newlib branch ]

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