FreeBSD Bugzilla – Attachment 17884 Details for
Bug 32342
vmstat.c: certain variables appear to have wrong declaration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 890 bytes, created by
Ryan Beasley
on 2001-11-27 22:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Ryan Beasley
Created:
2001-11-27 22:30:01 UTC
Size:
890 bytes
patch
obsolete
>--- src/usr.bin/vmstat/vmstat.c.orig Tue Nov 27 14:45:14 2001 >+++ src/usr.bin/vmstat/vmstat.c Tue Nov 27 15:14:16 2001 >@@ -758,7 +758,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; >+ int64_t totreq = 0; > const char *name; > struct malloc_type kmemstats[MAX_KMSTATS], *kmsp; > char buf[1024]; >@@ -862,7 +863,7 @@ > totreq += ks->ks_calls; > } > (void)printf("\nMemory Totals: In Use Free Requests\n"); >- (void)printf(" %7ldK %6ldK %8ld\n", >+ (void)printf(" %7ldK %6ldK %8lld\n", > (totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq); > } > > Another quickie -- should sys/malloc.h receive modifications similar > to the one below? (Of course, anything using these structures might > need some patching as well ...)
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 32342
: 17884 |
17885