diff options
author | mux <mux@FreeBSD.org> | 2003-04-10 00:44:18 +0000 |
---|---|---|
committer | mux <mux@FreeBSD.org> | 2003-04-10 00:44:18 +0000 |
commit | b333e2476aebc17cc9897af8ee45b3e3873e8650 (patch) | |
tree | 239bc3fb0c5687b88cd0608186708334c20c538e | |
parent | 3fa33374923975732f962383339386817d5c82b6 (diff) | |
download | FreeBSD-src-b333e2476aebc17cc9897af8ee45b3e3873e8650.zip FreeBSD-src-b333e2476aebc17cc9897af8ee45b3e3873e8650.tar.gz |
Slightly rework formatting in vmstat -i so that it doesn't
break with "fooX irqY" lines that are a bit bigger.
-rw-r--r-- | usr.bin/vmstat/vmstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 88c1d21..dedb4a7 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -739,17 +739,17 @@ dointr() errx(1, "malloc"); kread(X_INTRCNT, intrcnt, (size_t)nintr); kread(X_INTRNAMES, intrname, (size_t)inamlen); - (void)printf("interrupt total rate\n"); + (void)printf("%-14s %20s %10s\n", "interrupt", "total", "rate"); inttotal = 0; nintr /= sizeof(long); while (--nintr >= 0) { if (*intrcnt) - (void)printf("%-12s %20lu %10lu\n", intrname, + (void)printf("%-14s %20lu %10lu\n", intrname, *intrcnt, *intrcnt / uptime); intrname += strlen(intrname) + 1; inttotal += *intrcnt++; } - (void)printf("Total %20llu %10llu\n", inttotal, + (void)printf("%-14s %20llu %10llu\n", "Total", inttotal, inttotal / (u_int64_t) uptime); } |