Author: mav
Date: Wed Sep  8 07:30:46 2010
New Revision: 212313
URL: http://svn.freebsd.org/changeset/base/212313

Log:
  For total interrupt count on -vm screen count all interrupts, but not only
  those which fit the screen.

Modified:
  head/usr.bin/systat/vmstat.c

Modified: head/usr.bin/systat/vmstat.c
==============================================================================
--- head/usr.bin/systat/vmstat.c        Wed Sep  8 02:18:20 2010        
(r212312)
+++ head/usr.bin/systat/vmstat.c        Wed Sep  8 07:30:46 2010        
(r212313)
@@ -443,6 +443,9 @@ showkre(void)
        for (i = 0; i < nintr; i++) {
                if (s.intrcnt[i] == 0)
                        continue;
+               X(intrcnt);
+               l = (int)((float)s.intrcnt[i]/etime + 0.5);
+               inttotal += l;
                if (intrloc[i] == 0) {
                        if (nextintsrow == LINES)
                                continue;
@@ -450,9 +453,6 @@ showkre(void)
                        mvprintw(intrloc[i], INTSCOL + 6, "%-10.10s",
                                intrname[i]);
                }
-               X(intrcnt);
-               l = (int)((float)s.intrcnt[i]/etime + 0.5);
-               inttotal += l;
                putint(l, intrloc[i], INTSCOL, 5);
        }
        putint(inttotal, INTSROW + 1, INTSCOL, 5);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to