FreeBSD Bugzilla – Attachment 13338 Details for
Bug 25445
kernel statistics are displayed in wrong types and wrap into negative
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1022 bytes, created by
Peter Philipp
on 2001-02-28 05:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Peter Philipp
Created:
2001-02-28 05:10:01 UTC
Size:
1022 bytes
patch
obsolete
>--- vmstat.c.orig Tue Feb 27 23:33:53 2001 >+++ vmstat.c Tue Feb 27 23:44:41 2001 >@@ -761,7 +761,8 @@ > register struct malloc_type *ks; > register int i, j; > int len, size, first, nkms; >- long totuse = 0, totfree = 0, totreq = 0; >+ long totuse = 0, totfree = 0; >+ u_int64_t totreq = 0; > const char *name; > struct malloc_type kmemstats[MAX_KMSTATS], *kmsp; > char *kmemnames[MAX_KMSTATS]; >@@ -841,7 +842,7 @@ > for (i = 0, ks = &kmemstats[0]; i < nkms; i++, ks++) { > if (ks->ks_calls == 0) > continue; >- (void)printf("%13s%6ld%6ldK%7ldK%6ldK%9ld%5u%6u", >+ (void)printf("%13s%6lu%6ldK%7luK%6ldK%9qu%5u%6u", > ks->ks_shortdesc, > ks->ks_inuse, (ks->ks_memuse + 1023) / 1024, > (ks->ks_maxused + 1023) / 1024, >@@ -866,7 +867,7 @@ > totreq += ks->ks_calls; > } > (void)printf("\nMemory Totals: In Use Free Requests\n"); >- (void)printf(" %7ldK %6ldK %8ld\n", >+ (void)printf(" %7ldK %6ldK %8qu\n", > (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq); > }
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 25445
:
13337
| 13338