FreeBSD Bugzilla – Attachment 7437 Details for
Bug 16133
vmstat -i reports negative counts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.24 KB, created by
jc
on 2000-01-15 18:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
jc
Created:
2000-01-15 18:50:01 UTC
Size:
1.24 KB
patch
obsolete
>Index: vmstat.c >=================================================================== >RCS file: /usr/cvs/src/usr.bin/vmstat/vmstat.c,v >retrieving revision 1.29.2.2 >diff -c -r1.29.2.2 vmstat.c >*** vmstat.c 1999/08/29 15:34:34 1.29.2.2 >--- vmstat.c 2000/01/15 18:43:14 >*************** >*** 759,765 **** > void > dointr() > { >! register long *intrcnt, inttotal, uptime; > register int nintr, inamlen; > register char *intrname; > >--- 759,765 ---- > void > dointr() > { >! register unsigned long *intrcnt, inttotal, uptime; > register int nintr, inamlen; > register char *intrname; > >*************** >*** 778,789 **** > nintr /= sizeof(long); > while (--nintr >= 0) { > if (*intrcnt) >! (void)printf("%-12s %8ld %8ld\n", intrname, > *intrcnt, *intrcnt / uptime); > intrname += strlen(intrname) + 1; > inttotal += *intrcnt++; > } >! (void)printf("Total %8ld %8ld\n", inttotal, inttotal / uptime); > } > > void >--- 778,789 ---- > nintr /= sizeof(long); > while (--nintr >= 0) { > if (*intrcnt) >! (void)printf("%-12s %10ld %10ld\n", intrname, > *intrcnt, *intrcnt / uptime); > intrname += strlen(intrname) + 1; > inttotal += *intrcnt++; > } >! (void)printf("Total %10lu %10ld\n", inttotal, inttotal / uptime); > } > > void
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16133
: 7437