[Toybox] New toy: vmstat

Georgi Chorbadzhiyski gf at unixsol.org
Mon Apr 9 09:59:59 PDT 2012


On 4/9/12 2:39 PM, Elie De Brauwer wrote:
> In attachment you can find a no-nonsense vmstat implementation. Meaning most of the special things (which I personally never bothered to use) are dropped. (vmstat -d however is still under consideration, please shout if you're waiting for a vmstat -d or any other options).
> +        if(first_run || (!(loop_num % 22)&&  !no_header)) {

That 22 - 3 is terminal lines, right? You should probably use terminal_size()
function from lib.c and adjust the check on each loop.


-- 
Georgi Chorbadzhiyski
http://georgi.unixsol.org/

 1333990799.0


More information about the Toybox mailing list