mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
This commit is contained in:
parent
1b1d481112
commit
9aa042f66c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78849
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue