Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jun 2001 14:45:10 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Jens Schweikhardt <schweikh@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/vmstat vmstat.c
Message-ID:  <Pine.BSF.4.21.0106201427230.21941-100000@besplex.bde.org>
In-Reply-To: <200106191759.f5JHxiF54249@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 19 Jun 2001, Jens Schweikhardt wrote:

> schweikh    2001/06/19 10:59:43 PDT
> 
>   Modified files:
>     usr.bin/vmstat       vmstat.c 
>   Log:
>   Made all fields in default output be space separated. Run-together
>   columns confuse the heck out of other apps trying to parse vmstat output
>   (eg sscope). I made sure we're still <= 80 cols per line.

80 columns is no good, since it causes line wrap on some terminals,
including syscons ones:

 procs        memory      page                    disks     faults      cpu
 r  b  w     avm    fre  flt  re  pi  po  fr  sr ad0 ad4   in   sy  cs us sy id
 2  0  0    6436  69400    8   0   0   0   5   0   0   0  343  559 667  0  0 99
 0  0  0    6436  69396   13   0   0   0   0   0   0   0  334  126 632  0  1 99
 1  0  0    7032  69396    3   0   0   0   0   0   0   0  333  116 630  0  0 100

80 columns are used when id == 100.

The r/b/w fields now waste precious columns.  These are the only fields
whose formatting was changed.  I think the change should have been from
"%2d%2d%2d" to " %1d %1d %1d".  The display will be messed up if the
numbers don't fit in the field width, but this is nothing new -- some
of the other numbers might not fit already.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0106201427230.21941-100000>