Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/iostat Display all drives if "iostat -x <interval>"...



details:   https://anonhg.NetBSD.org/src/rev/a039cdee1243
branches:  trunk
changeset: 476315:a039cdee1243
user:      tron <tron%NetBSD.org@localhost>
date:      Mon Sep 13 16:56:35 1999 +0000

description:
Display all drives if "iostat -x <interval>" is used.
Fixes PR bin/8389 by Mattias Pantzare.

diffstat:

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

diffs (35 lines):

diff -r e7965ef5c557 -r a039cdee1243 usr.sbin/iostat/iostat.c
--- a/usr.sbin/iostat/iostat.c  Mon Sep 13 16:26:17 1999 +0000
+++ b/usr.sbin/iostat/iostat.c  Mon Sep 13 16:56:35 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iostat.c,v 1.18 1999/06/27 12:32:13 mjl Exp $  */
+/*     $NetBSD: iostat.c,v 1.19 1999/09/13 16:56:35 tron 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.18 1999/06/27 12:32:13 mjl Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.19 1999/09/13 16:56:35 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -454,6 +454,11 @@
         * The backward compatibility #ifdefs permit the syntax:
         *      iostat [ drives ] [ interval [ count ] ]
         */
+       if (ISSET(todo, SHOW_STATS_X)) {
+               for (i = 0; i < dk_ndrive; i++)
+                       cur.dk_select[i] = 1;
+       }
+
 #define        BACKWARD_COMPATIBILITY
        for (ndrives = 0; *argv; ++argv) {
 #ifdef BACKWARD_COMPATIBILITY
@@ -491,3 +496,4 @@
                        ++ndrives;
                }
 }
+



Home | Main Index | Thread Index | Old Index