From owner-cvs-all Wed Aug 22 20:20:13 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4A7FD37B40C; Wed, 22 Aug 2001 20:19:55 -0700 (PDT) (envelope-from ken@FreeBSD.org) Received: (from ken@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7N3Jtw21876; Wed, 22 Aug 2001 20:19:55 -0700 (PDT) (envelope-from ken) Message-Id: <200108230319.f7N3Jtw21876@freefall.freebsd.org> From: "Kenneth D. Merry" Date: Wed, 22 Aug 2001 20:19:55 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/iostat Makefile iostat.c X-FreeBSD-CVS-Branch: HEAD 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 ken 2001/08/22 20:19:55 PDT Modified files: usr.sbin/iostat Makefile iostat.c Log: Bring in some iostat fixes that bde reminded me about. These fixes were originally written in January, 2000, but have been substantially updated. - No longer use hz/stathz and the CPU times in computing the TTY stats, but rather use etime, like the disk stats. - Clean up malloc/realloc failure tests. - Use a new integrated routine to fetch devstat information via sysctl or KVM. - Get rid of the X() macro for calculating CPU stats - Use rint() on the CPU state display to avoid truncation errors. (this requires libm) - Clean up flag usage somewhat. Reviewed by: bde Revision Changes Path 1.11 +3 -4 src/usr.sbin/iostat/Makefile 1.21 +124 -93 src/usr.sbin/iostat/iostat.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message