Module Name:    src
Committed By:   enami
Date:           Fri Dec 24 23:39:19 UTC 2010

Modified Files:
        src/usr.bin/vmstat: vmstat.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.171 -r1.172 src/usr.bin/vmstat/vmstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/vmstat/vmstat.c
diff -u src/usr.bin/vmstat/vmstat.c:1.171 src/usr.bin/vmstat/vmstat.c:1.172
--- src/usr.bin/vmstat/vmstat.c:1.171	Mon Dec 20 04:25:03 2010
+++ src/usr.bin/vmstat/vmstat.c	Fri Dec 24 23:39:19 2010
@@ -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;
 		/*

Reply via email to