Module Name: src
Committed By: jakllsch
Date: Sun Jan 9 03:35:23 UTC 2011
Modified Files:
src/usr.sbin/iostat: iostat.c
Log Message:
Fix copy/paste error that resulted in a extra space after the KB/t column.
To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/usr.sbin/iostat/iostat.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/iostat/iostat.c
diff -u src/usr.sbin/iostat/iostat.c:1.56 src/usr.sbin/iostat/iostat.c:1.57
--- src/usr.sbin/iostat/iostat.c:1.56 Sun Jan 9 02:40:19 2011
+++ src/usr.sbin/iostat/iostat.c Sun Jan 9 03:35:23 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: iostat.c,v 1.56 2011/01/09 02:40:19 jakllsch Exp $ */
+/* $NetBSD: iostat.c,v 1.57 2011/01/09 03:35:23 jakllsch Exp $ */
/*
* Copyright (c) 1996 John M. Vinopal
@@ -71,7 +71,7 @@
#if 0
static char sccsid[] = "@(#)iostat.c 8.3 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: iostat.c,v 1.56 2011/01/09 02:40:19 jakllsch Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.57 2011/01/09 03:35:23 jakllsch Exp $");
#endif
#endif /* not lint */
@@ -326,7 +326,7 @@
1024.0) / (cur.rxfer[dn] + cur.wxfer[dn]);
else
mbps = 0.0;
- (void)printf(" %5.*f ",
+ (void)printf(" %5.*f",
MAX(0,3-(int)floor(log10(fabs(fmax(1.0,mbps))))), mbps);
/* average transfers per second. */