1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Oops, meant 'used' instead of 'free' in memstat.

This commit is contained in:
Jonas 'Sortie' Termansen 2011-11-26 21:10:08 +01:00
parent bd1b1fe3bc
commit d96d790de7

View file

@ -48,7 +48,7 @@ int main(int argc, char* argv[])
printf("memory usage: ");
printbytes(memused);
printf(" free / ");
printf(" used / ");
printbytes(memtotal);
unsigned percent = ((unsigned long long) memused * 100ULL ) / memtotal;
printf(" total (%u%s)\n", percent, "%");