Discussion:
[Toybox] [PATCH] [VMSTAT] [vmstat bug(no header on -n) and on 1 1 behaviour]
haroon maqsood
2018-03-26 23:37:06 UTC
Permalink
Hi,

Please find attached my attempt at fixing the issue in vmstat,

e.g if vmstat -n 1 0 is used no header is displayed in the beginning

or till the end.


and second bug , if vmstat 1 1 is ran , it runs infinitely.

Thanks

Haroon
Rob Landley
2018-03-28 23:12:34 UTC
Permalink
Post by haroon maqsood
Hi,
Please find attached my attempt at fixing the issue in vmstat,
e.g if vmstat -n 1 0 is used no header is displayed in the beginning
or till the end.
With your change -n has no effect. (It shouldn't show it after the first time,
but if you let it go for a full screen it shows the header again...)

Instead I made -n and stdout not being a tty do the same thing.
Post by haroon maqsood
and second bug , if vmstat 1 1 is ran , it runs infinitely.
That one your fix was correct for.

Applied,

Rob

Loading...