From owner-freebsd-bugs@FreeBSD.ORG Sat Oct 7 09:10:33 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8307116A40F for ; Sat, 7 Oct 2006 09:10:33 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08EB743D73 for ; Sat, 7 Oct 2006 09:10:25 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k979AOxL030580 for ; Sat, 7 Oct 2006 09:10:24 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k979AOqR030579; Sat, 7 Oct 2006 09:10:24 GMT (envelope-from gnats) Resent-Date: Sat, 7 Oct 2006 09:10:24 GMT Resent-Message-Id: <200610070910.k979AOqR030579@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Dr. Markus Waldeck" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1782E16A415 for ; Sat, 7 Oct 2006 09:06:57 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAF2443D45 for ; Sat, 7 Oct 2006 09:06:56 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k9796udO000897 for ; Sat, 7 Oct 2006 09:06:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k9796uGQ000896; Sat, 7 Oct 2006 09:06:56 GMT (envelope-from nobody) Message-Id: <200610070906.k9796uGQ000896@www.freebsd.org> Date: Sat, 7 Oct 2006 09:06:56 GMT From: "Dr. Markus Waldeck" To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/104092: Missing blanks in iostat output X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Oct 2006 09:10:33 -0000 >Number: 104092 >Category: misc >Synopsis: Missing blanks in iostat output >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Oct 07 09:10:24 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Dr. Markus Waldeck >Release: 6.1 >Organization: >Environment: FreeBSD fb 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Sun May 7 04:32:43 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: If some values increases over a special size the ouput gets unusable. >How-To-Repeat: find / find / | xargs cat > /dev/null >Fix: *** iostat.c Mon Oct 2 21:58:52 2006 --- iostat.c.patched Mon Oct 2 21:56:12 2006 *************** *** 548,554 **** } if (Tflag > 0) ! printf("%4.0Lf%5.0Lf", cur.tk_nin / etime, cur.tk_nout/etime); devstats(hflag, etime, havelast); --- 548,554 ---- } if (Tflag > 0) ! printf("%4.0Lf %4.0Lf", cur.tk_nin / etime, cur.tk_nout/etime); devstats(hflag, etime, havelast); *************** *** 684,696 **** int msdig = (ms_per_transaction < 100.0) ? 1 : 0; if (Iflag == 0) ! printf("%4.0Lf%4.0Lf%5.*Lf ", blocks_per_second, transfers_per_second, msdig, ms_per_transaction); else ! printf("%4.1qu%4.1qu%5.*Lf ", total_blocks, total_transfers, msdig, --- 684,696 ---- int msdig = (ms_per_transaction < 100.0) ? 1 : 0; if (Iflag == 0) ! printf(" %3.0Lf %3.0Lf %4.*Lf ", blocks_per_second, transfers_per_second, msdig, ms_per_transaction); else ! printf(" %3.1qu %3.1qu %4.*Lf ", total_blocks, total_transfers, msdig, >Release-Note: >Audit-Trail: >Unformatted: