Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/iostat print a header on each outputs if and only i...
details: https://anonhg.NetBSD.org/src/rev/c4a6d16be168
branches: trunk
changeset: 588228:c4a6d16be168
user: yamt <yamt%NetBSD.org@localhost>
date: Sun Feb 12 11:23:31 2006 +0000
description:
print a header on each outputs if and only if the output has 2 or more lines.
diffstat:
usr.sbin/iostat/iostat.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r af293b790219 -r c4a6d16be168 usr.sbin/iostat/iostat.c
--- a/usr.sbin/iostat/iostat.c Sun Feb 12 10:32:46 2006 +0000
+++ b/usr.sbin/iostat/iostat.c Sun Feb 12 11:23:31 2006 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iostat.c,v 1.46 2006/01/08 08:47:16 yamt Exp $ */
+/* $NetBSD: iostat.c,v 1.47 2006/02/12 11:23:31 yamt 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.46 2006/01/08 08:47:16 yamt Exp $");
+__RCSID("$NetBSD: iostat.c,v 1.47 2006/02/12 11:23:31 yamt Exp $");
#endif
#endif /* not lint */
@@ -217,9 +217,7 @@
(void)signal(SIGCONT, sig_header);
for (hdrcnt = 1;;) {
- if (do_header ||
- ((hdrcnt -= lines) <= 0) ||
- ISSET(todo, SHOW_STATS_X)) {
+ if (do_header || lines > 1 || (hdrcnt -= lines) <= 0) {
do_header = 0;
header();
hdrcnt = winlines - 4;
Home |
Main Index |
Thread Index |
Old Index