Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/iostat extend the "tout" column to 5 characters, it...
details: https://anonhg.NetBSD.org/src/rev/60a5ccf130ce
branches: trunk
changeset: 341190:60a5ccf130ce
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Oct 25 02:47:17 2015 +0000
description:
extend the "tout" column to 5 characters, it's really common on a modern
machine to have eg, build output way more than 9999 chars/sec.
this doesn't affect the default disk list on an 80-char wide screen.
diffstat:
usr.sbin/iostat/iostat.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 72b449a0e1e0 -r 60a5ccf130ce usr.sbin/iostat/iostat.c
--- a/usr.sbin/iostat/iostat.c Sat Oct 24 15:46:09 2015 +0000
+++ b/usr.sbin/iostat/iostat.c Sun Oct 25 02:47:17 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iostat.c,v 1.62 2015/07/09 13:26:52 mrg Exp $ */
+/* $NetBSD: iostat.c,v 1.63 2015/10/25 02:47:17 mrg 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.62 2015/07/09 13:26:52 mrg Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.63 2015/10/25 02:47:17 mrg Exp $");
#endif
#endif /* not lint */
@@ -184,7 +184,7 @@
if (ISSET(todo, SHOW_CPU))
defdrives -= 16; /* XXX magic number */
if (ISSET(todo, SHOW_TTY))
- defdrives -= 9; /* XXX magic number */
+ defdrives -= 10; /* XXX magic number */
defdrives /= 18; /* XXX magic number */
drvinit(0);
@@ -279,7 +279,7 @@
/* Sub-Headers. */
if (ISSET(todo, SHOW_TTY))
- printf(" tin tout");
+ printf(" tin tout");
if (ISSET(todo, SHOW_STATS_1)) {
for (i = 0; i < ndrive; i++)
@@ -468,7 +468,7 @@
}
if (ISSET(todo, SHOW_TTY))
- printf("%4.0f %4.0f", cur.tk_nin / etime, cur.tk_nout / etime);
+ printf("%4.0f %5.0f", cur.tk_nin / etime, cur.tk_nout / etime);
if (ISSET(todo, SHOW_STATS_1)) {
drive_stats(etime);
Home |
Main Index |
Thread Index |
Old Index