Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/iostat Fix copy/paste error that resulted in a extr...
details: https://anonhg.NetBSD.org/src/rev/35f3ad0bfc74
branches: trunk
changeset: 760603:35f3ad0bfc74
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Jan 09 03:35:23 2011 +0000
description:
Fix copy/paste error that resulted in a extra space after the KB/t column.
diffstat:
usr.sbin/iostat/iostat.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r dcd446771328 -r 35f3ad0bfc74 usr.sbin/iostat/iostat.c
--- a/usr.sbin/iostat/iostat.c Sun Jan 09 02:40:19 2011 +0000
+++ b/usr.sbin/iostat/iostat.c Sun Jan 09 03:35:23 2011 +0000
@@ -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. */
Home |
Main Index |
Thread Index |
Old Index