Date: Sat, 7 Oct 2006 09:06:56 GMT From: "Dr. Markus Waldeck" <waldeck@gmx.de> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/104092: Missing blanks in iostat output Message-ID: <200610070906.k9796uGQ000896@www.freebsd.org> Resent-Message-ID: <200610070910.k979AOqR030579@freefall.freebsd.org>
index | next in thread | raw e-mail
>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:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610070906.k9796uGQ000896>
