summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-03-29 00:10:14 +0000
committerdg <dg@FreeBSD.org>1995-03-29 00:10:14 +0000
commit8bdafddcb6fb8d43c51352c76bd289058503ac56 (patch)
treec17b261c86e2d9a273e51c8c3b791805902d9995 /usr.bin
parent14d50aee6d0da7307c128354d6fe2af46d0e7aff (diff)
downloadFreeBSD-src-8bdafddcb6fb8d43c51352c76bd289058503ac56.zip
FreeBSD-src-8bdafddcb6fb8d43c51352c76bd289058503ac56.tar.gz
From Mark Murray:
I got irritated with not seeing the interrupt numbers in a (crowded) "systat -vmstat" display, so I fixed it. Here is a patch to please be applied in src/usr.bin/systat
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/vmstat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index 9f1ce1b..ef3d882 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -170,7 +170,7 @@ static struct nlist namelist[] = {
#define PAGEROW 2 /* uses 4 rows and 26 cols */
#define PAGECOL 36
#define INTSROW 2 /* uses all rows to bottom and 17 cols */
-#define INTSCOL 63
+#define INTSCOL 61
#define PROCSROW 7 /* uses 2 rows and 20 cols */
#define PROCSCOL 0
#define GENSTATROW 7 /* uses 2 rows and 30 cols */
@@ -333,7 +333,7 @@ labelkre()
for (i = 0; i < nintr; i++) {
if (intrloc[i] == 0)
continue;
- mvprintw(intrloc[i], INTSCOL + 9, "%-8.8s", intrname[i]);
+ mvprintw(intrloc[i], INTSCOL + 9, "%-10.10s", intrname[i]);
}
}
@@ -389,15 +389,15 @@ showkre()
if (nextintsrow == LINES)
continue;
intrloc[i] = nextintsrow++;
- mvprintw(intrloc[i], INTSCOL + 9, "%-8.8s",
+ mvprintw(intrloc[i], INTSCOL + 9, "%-10.10s",
intrname[i]);
}
X(intrcnt);
l = (int)((float)s.intrcnt[i]/etime + 0.5);
inttotal += l;
- putint(l, intrloc[i], INTSCOL, 8);
+ putint(l, intrloc[i], INTSCOL + 2, 6);
}
- putint(inttotal, INTSROW + 1, INTSCOL, 8);
+ putint(inttotal, INTSROW + 1, INTSCOL + 2, 6);
Z(ncs_goodhits); Z(ncs_badhits); Z(ncs_miss);
Z(ncs_long); Z(ncs_pass2); Z(ncs_2passes); Z(ncs_neghits);
s.nchcount = nchtotal.ncs_goodhits + nchtotal.ncs_badhits +
OpenPOWER on IntegriCloud