diff options
author | mav <mav@FreeBSD.org> | 2010-09-08 07:30:46 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2010-09-08 07:30:46 +0000 |
commit | 887c1a77ce46ac266e7f02b7833155ea36b477ed (patch) | |
tree | ab8f3a4d16669e1545240e5fb3394118e9427eff /usr.bin/systat | |
parent | 417820202cd2e37eb1dc50046fc513cbeba94f88 (diff) | |
download | FreeBSD-src-887c1a77ce46ac266e7f02b7833155ea36b477ed.zip FreeBSD-src-887c1a77ce46ac266e7f02b7833155ea36b477ed.tar.gz |
For total interrupt count on -vm screen count all interrupts, but not only
those which fit the screen.
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/vmstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index f5e8324..07a83911 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -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); |