[Toybox] [PATCH] [VMSTAT] [vmstat bug(no header on -n) and on 1 1 behaviour]

Rob Landley rob at landley.net
Wed Mar 28 16:12:34 PDT 2018


On 03/26/2018 06:37 PM, haroon maqsood wrote:
> 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.

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

That one your fix was correct for.

Applied,

Rob



More information about the Toybox mailing list