Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/vmstat We still need to update ouvmexp to output the...



details:   https://anonhg.NetBSD.org/src/rev/ac5bd4b41a84
branches:  trunk
changeset: 760041:ac5bd4b41a84
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Dec 24 23:39:19 2010 +0000

description:
We still need to update ouvmexp to output the differene from
previous iteration.

diffstat:

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

diffs (26 lines):

diff -r a25aedbf4bfe -r ac5bd4b41a84 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c   Fri Dec 24 23:28:14 2010 +0000
+++ b/usr.bin/vmstat/vmstat.c   Fri Dec 24 23:39:19 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.171 2010/12/20 04:25:03 christos Exp $ */
+/* $NetBSD: vmstat.c,v 1.172 2010/12/24 23:39:19 enami 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.171 2010/12/20 04:25:03 christos Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.172 2010/12/24 23:39:19 enami Exp $");
 #endif
 #endif /* not lint */
 
@@ -736,6 +736,7 @@
                (void)fflush(stdout);
                if (reps >= 0 && --reps <= 0)
                        break;
+               ouvmexp = uvmexp;
                ocpucounter = cpucounter;
                uptime = interval->tv_sec;
                /*



Home | Main Index | Thread Index | Old Index