From owner-cvs-all@FreeBSD.ORG Sun Apr 30 07:27:24 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7A3A16A402; Sun, 30 Apr 2006 07:27:24 +0000 (UTC) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 991D143D58; Sun, 30 Apr 2006 07:27:24 +0000 (GMT) (envelope-from bde@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k3U7RO07000497; Sun, 30 Apr 2006 07:27:24 GMT (envelope-from bde@repoman.freebsd.org) Received: (from bde@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k3U7ROLN000496; Sun, 30 Apr 2006 07:27:24 GMT (envelope-from bde) Message-Id: <200604300727.k3U7ROLN000496@repoman.freebsd.org> From: Bruce Evans Date: Sun, 30 Apr 2006 07:27:24 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.bin/systat systat.1 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: Sun, 30 Apr 2006 07:27:24 -0000 bde 2006-04-30 07:27:24 UTC FreeBSD src repository Modified files: usr.bin/systat systat.1 vmstat.c Log: Fix "slow (on-the-fly) zero fills percentage (`%slo-z')" some more. The value printed is actually the optimized (i.e., the non-slow, not-on-the-fly zero fills percentage) except in overflow cases. Describe it as %ozfod in the display. Move the field descriptor 1 to the left so that there is space for 5 characters after the % sign (this leaves no space between the number and the descriptor but the % character serves well as a separator). Fixed integer overflow at z.ozfod = UINT_MAX/100 in the calculation of %ozfod. This value can be reached just a few hours or minutes after booting, so %ozfod was usually garbage in boot mode. Now %ozfod is correct in boot mode for a few days or hours. Print a non-dummy %ozfod when the division for it isn't division by 0 instead of when the result will be less than 100%. A result of 100% may be correct, though a result of more than 100% indicates overflow of one or both counters. Revision Changes Path 1.48 +1 -1 src/usr.bin/systat/systat.1 1.74 +3 -3 src/usr.bin/systat/vmstat.c