Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/systat Remove fagile test which ensured that first n...
details: https://anonhg.NetBSD.org/src/rev/dc85e606c395
branches: trunk
changeset: 330060:dc85e606c395
user: njoly <njoly%NetBSD.org@localhost>
date: Fri Jun 20 07:08:15 2014 +0000
description:
Remove fagile test which ensured that first namelist element (was
X_NCHSTATS) had a known type. Make disk stats available again for
vmstat display.
diffstat:
usr.bin/systat/vmstat.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (29 lines):
diff -r 5c5704ea6b5f -r dc85e606c395 usr.bin/systat/vmstat.c
--- a/usr.bin/systat/vmstat.c Fri Jun 20 06:13:45 2014 +0000
+++ b/usr.bin/systat/vmstat.c Fri Jun 20 07:08:15 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.79 2014/06/14 20:10:42 joerg Exp $ */
+/* $NetBSD: vmstat.c,v 1.80 2014/06/20 07:08:15 njoly Exp $ */
/*-
* Copyright (c) 1983, 1989, 1992, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#endif
-__RCSID("$NetBSD: vmstat.c,v 1.79 2014/06/14 20:10:42 joerg Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.80 2014/06/20 07:08:15 njoly Exp $");
#endif /* not lint */
/*
@@ -212,10 +212,6 @@
nlisterr(namelist);
return(0);
}
- if (namelist[0].n_type == 0) {
- error("No namelist");
- return(0);
- }
}
hertz = stathz ? stathz : hz;
if (!drvinit(1))
Home |
Main Index |
Thread Index |
Old Index