mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Change totreq to uint64_t from a long (the PR has an int64_t, which didn't
make sense to me) and change the printf argument from %8ld to %20llu to accompany the printing of the totals. Realigned the header printed above it as well. PR: 32342 Submitted by: ryan beasley <ryanb@goddamnbastard.org> Reviewed by: jeff, Tim J Robbins
This commit is contained in:
parent
73d75acaa0
commit
9333bd2aa6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94200
@ -761,7 +761,8 @@ domem()
|
||||
struct malloc_type *ks;
|
||||
int i, j;
|
||||
int first, nkms;
|
||||
long totuse = 0, totfree = 0, totreq = 0;
|
||||
long totuse = 0, totfree = 0;
|
||||
uint64_t totreq = 0;
|
||||
struct malloc_type kmemstats[MAX_KMSTATS], *kmsp;
|
||||
char buf[1024];
|
||||
|
||||
@ -810,8 +811,8 @@ domem()
|
||||
totuse += ks->ks_memuse;
|
||||
totreq += ks->ks_calls;
|
||||
}
|
||||
(void)printf("\nMemory Totals: In Use Free Requests\n");
|
||||
(void)printf(" %7ldK %6ldK %8ld\n",
|
||||
(void)printf("\nMemory Totals: In Use Free Requests\n");
|
||||
(void)printf(" %7ldK %6ldK %20llu\n",
|
||||
(totuse + 1023) / 1024, (totfree + 1023) / 1024, totreq);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user