]> granicus.if.org Git - procps-ng/commit
slabtop: for run_once switch (-o), output all slabinfo
authorJim Warner <james.warner@comcast.net>
Mon, 27 Nov 2017 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Wed, 20 Dec 2017 10:07:49 +0000 (21:07 +1100)
commit0ef497bb350c4a1b6a872029a3050ce8250466de
tree80daaa6353b6d2c455a7744e3d4baf62e3b9a60a
parent18e5aecd2b61387ebd82c83f6f716e4c8e093272
slabtop: for run_once switch (-o), output all slabinfo

It doesn't make sense to restrict the number of output
lines to the total of terminal rows when using the run
once command line switch. And, in fact, that's how the
newlib version of slabtop works. Everything is output.

So, this commit places both versions on equal footing.

[ it was even worse if the switch was used in a pipe ]
[ since only 23 lines would have then been displayed ]

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