Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/iostat Truncate disk names in header to 7 instead o...



details:   https://anonhg.NetBSD.org/src/rev/f4ed5428c348
branches:  trunk
changeset: 474063:f4ed5428c348
user:      mjl <mjl%NetBSD.org@localhost>
date:      Sun Jun 27 12:32:13 1999 +0000

description:
Truncate disk names in header to 7 instead of 3 chars, we actually
have "raid0".

diffstat:

 usr.sbin/iostat/iostat.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r ac72f39aace2 -r f4ed5428c348 usr.sbin/iostat/iostat.c
--- a/usr.sbin/iostat/iostat.c  Sun Jun 27 12:26:32 1999 +0000
+++ b/usr.sbin/iostat/iostat.c  Sun Jun 27 12:32:13 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iostat.c,v 1.17 1998/08/27 03:17:49 lukem Exp $        */
+/*     $NetBSD: iostat.c,v 1.18 1999/06/27 12:32:13 mjl Exp $  */
 
 /*
  * Copyright (c) 1996 John M. Vinopal
@@ -75,7 +75,7 @@
 #if 0
 static char sccsid[] = "@(#)iostat.c   8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: iostat.c,v 1.17 1998/08/27 03:17:49 lukem Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.18 1999/06/27 12:32:13 mjl Exp $");
 #endif
 #endif /* not lint */
 
@@ -239,13 +239,13 @@
                for (i = 0; i < dk_ndrive; i++)
                        if (cur.dk_select[i])
                                (void)printf(
-                                   "            %3.3s ", cur.dk_name[i]);
+                                   "        %7.7s ", cur.dk_name[i]);
 
        if (ISSET(todo, SHOW_STATS_2))
                for (i = 0; i < dk_ndrive; i++)
                        if (cur.dk_select[i])
                                (void)printf(
-                                   "           %3.3s ", cur.dk_name[i]);
+                                   "       %7.7s ", cur.dk_name[i]);
 
        if (ISSET(todo, SHOW_CPU))
                (void)printf("            cpu");



Home | Main Index | Thread Index | Old Index