From owner-cvs-all@FreeBSD.ORG Fri Jan 18 22:10:35 2008 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6816C16A41B for ; Fri, 18 Jan 2008 22:10:35 +0000 (UTC) (envelope-from peter@wemm.org) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.159]) by mx1.freebsd.org (Postfix) with ESMTP id EF76513C4E7 for ; Fri, 18 Jan 2008 22:10:34 +0000 (UTC) (envelope-from peter@wemm.org) Received: by fg-out-1718.google.com with SMTP id 16so1361110fgg.35 for ; Fri, 18 Jan 2008 14:10:33 -0800 (PST) Received: by 10.82.108.9 with SMTP id g9mr6879417buc.34.1200694233412; Fri, 18 Jan 2008 14:10:33 -0800 (PST) Received: by 10.82.181.17 with HTTP; Fri, 18 Jan 2008 14:10:33 -0800 (PST) Message-ID: Date: Fri, 18 Jan 2008 14:10:33 -0800 From: "Peter Wemm" To: "Pieter de Goeje" In-Reply-To: <200801182142.35019.pieter@degoeje.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200712130236.lBD2aCWP029948@repoman.freebsd.org> <200801182142.35019.pieter@degoeje.nl> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/usr.bin/vmstat Makefile vmstat.8 vmstat.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 22:10:35 -0000 On Jan 18, 2008 12:42 PM, Pieter de Goeje wrote: > > On Thursday 13 December 2007, Peter Wemm wrote: > > peter 2007-12-13 02:36:11 UTC > > > > FreeBSD src repository > > > > Modified files: > > usr.bin/vmstat Makefile vmstat.8 vmstat.c > > Log: > > Add the -H, -h and -P flags to vmstat. -P causes per-cpu output of > > user/system/idle stats. -h feeds the memory column through > > humanize_number() to reduce the amount of column overflowing. -H turns > > this off. -h is turned on by default if stdout is a tty. > > > > Revision Changes Path > > 1.13 +2 -2 src/usr.bin/vmstat/Makefile > > 1.37 +9 -1 src/usr.bin/vmstat/vmstat.8 > > 1.99 +196 -17 src/usr.bin/vmstat/vmstat.c > > I noticed vmstat dumps stats from all kern.smp.maxcpus CPUs on screen when > using -P. Attached patch fixes the problem. > > Cheers, > Pieter de Goeje > Committed as rev 1.100 of vmstat.c.. Thanks! -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5