svn commit: r212313 - head/usr.bin/systat

Alexander Motin mav at FreeBSD.org
Wed Sep 8 07:30:47 UTC 2010


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);


More information about the svn-src-head mailing list