Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/vmstat Make sure to getnlist in dovmstat



details:   https://anonhg.NetBSD.org/src/rev/ffc10f87b8d9
branches:  trunk
changeset: 761546:ffc10f87b8d9
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jan 31 18:56:04 2011 +0000

description:
Make sure to getnlist in dovmstat

diffstat:

 usr.bin/vmstat/vmstat.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r b7145eb2fd93 -r ffc10f87b8d9 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Mon Jan 31 18:53:29 2011 +0000
+++ b/usr.bin/vmstat/vmstat.c   Mon Jan 31 18:56:04 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.176 2011/01/29 18:10:08 matt Exp $ */
+/* $NetBSD: vmstat.c,v 1.177 2011/01/31 18:56:04 matt Exp $ */
 
 /*-
  * Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
 #if 0
 static char sccsid[] = "@(#)vmstat.c   8.2 (Berkeley) 3/1/95";
 #else
-__RCSID("$NetBSD: vmstat.c,v 1.176 2011/01/29 18:10:08 matt Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.177 2011/01/31 18:56:04 matt Exp $");
 #endif
 #endif /* not lint */
 
@@ -730,6 +730,7 @@
        int pagesize = getpagesize();
        int ovflw;
 
+       getnlist(VMSTAT);
        uptime = getuptime();
        halfuptime = uptime / 2;
        (void)signal(SIGCONT, needhdr);



Home | Main Index | Thread Index | Old Index