Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/systat Add per process cache values to the total nam...



details:   https://anonhg.NetBSD.org/src/rev/771990fe6847
branches:  trunk
changeset: 754448:771990fe6847
user:      njoly <njoly%NetBSD.org@localhost>
date:      Fri Apr 30 16:21:05 2010 +0000

description:
Add per process cache values to the total name translations count.

diffstat:

 usr.bin/systat/vmstat.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 9efb739c48fe -r 771990fe6847 usr.bin/systat/vmstat.c
--- a/usr.bin/systat/vmstat.c   Fri Apr 30 15:51:27 2010 +0000
+++ b/usr.bin/systat/vmstat.c   Fri Apr 30 16:21:05 2010 +0000
@@ -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;
 



Home | Main Index | Thread Index | Old Index