Module Name: src
Committed By: njoly
Date: Fri Apr 30 16:21:05 UTC 2010
Modified Files:
src/usr.bin/systat: vmstat.c
Log Message:
Add per process cache values to the total name translations count.
To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/usr.bin/systat/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/systat/vmstat.c
diff -u src/usr.bin/systat/vmstat.c:1.76 src/usr.bin/systat/vmstat.c:1.77
--- src/usr.bin/systat/vmstat.c:1.76 Fri Apr 30 13:49:22 2010
+++ src/usr.bin/systat/vmstat.c Fri Apr 30 16:21:05 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.76 2010/04/30 13:49:22 njoly Exp $ */
+/* $NetBSD: vmstat.c,v 1.77 2010/04/30 16:21:05 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.76 2010/04/30 13:49:22 njoly Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.77 2010/04/30 16:21:05 njoly Exp $");
#endif /* not lint */
/*
@@ -530,7 +530,8 @@
Z(s, s1, ncs_goodhits); Z(s, s1, ncs_badhits); Z(s, s1, ncs_miss);
Z(s, s1, ncs_long); Z(s, s1, ncs_pass2); Z(s, s1, ncs_2passes);
s.nchcount = s.nchstats.ncs_goodhits + s.nchstats.ncs_badhits +
- s.nchstats.ncs_miss + s.nchstats.ncs_long;
+ s.nchstats.ncs_miss + s.nchstats.ncs_long +
+ s.nchstats.ncs_pass2 + s.nchstats.ncs_2passes;
if (display_mode == TIME)
s1.nchcount = s.nchcount;