diff options
author | schweikh <schweikh@FreeBSD.org> | 2001-06-26 18:49:10 +0000 |
---|---|---|
committer | schweikh <schweikh@FreeBSD.org> | 2001-06-26 18:49:10 +0000 |
commit | 9e705f87d9b2bde4998190e7b986d55bd507911b (patch) | |
tree | 1bc8ad1fa8d6c544f49a6153e8785f9ca88c78bc /usr.bin/vmstat | |
parent | cf9714287105e332cb1e9151538ec5752a864586 (diff) | |
download | FreeBSD-src-9e705f87d9b2bde4998190e7b986d55bd507911b.zip FreeBSD-src-9e705f87d9b2bde4998190e7b986d55bd507911b.tar.gz |
Increase column widths when using -i (they are now wide enough to
hold a 64bit or 32bit ~0 value, i.e. 20 and 10; this anticipates
soon-to-be machines with Exahertz rtc interrupt frequencies. :-)
PR: bin/16206
Submitted by: John Capo <jc@irbs.com>
MFC after: 1 week
Diffstat (limited to 'usr.bin/vmstat')
-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 fffd86c..4556b25 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -734,17 +734,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("interrupt total rate\n"); inttotal = 0; nintr /= sizeof(long); while (--nintr >= 0) { if (*intrcnt) - (void)printf("%-12s %8lu %8lu\n", intrname, + (void)printf("%-12s %20lu %10lu\n", intrname, *intrcnt, *intrcnt / uptime); intrname += strlen(intrname) + 1; inttotal += *intrcnt++; } - (void)printf("Total %8llu %8llu\n", inttotal, + (void)printf("Total %20llu %10llu\n", inttotal, inttotal / (u_int64_t) uptime); } |