From owner-cvs-all Tue Jun 19 21:47:12 2001 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 80BCE37B408; Tue, 19 Jun 2001 21:47:05 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id OAA10935; Wed, 20 Jun 2001 14:47:00 +1000 Date: Wed, 20 Jun 2001 14:45:10 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Jens Schweikhardt Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/vmstat vmstat.c In-Reply-To: <200106191759.f5JHxiF54249@freefall.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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