Fixed `memory` field result

This commit is contained in:
Casey 2022-09-13 19:22:16 +03:00
parent bc6ac9a1f4
commit 60d9b6cd83
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 2 additions and 1 deletions

3
main.c
View File

@ -6,6 +6,7 @@
#include <string.h>
#include <mongoose.h>
#include <sys/time.h>
#include <unistd.h>
#define ALLOC_ON_DEMAND 1
@ -206,7 +207,7 @@ uint64_t get_mem_usage(void) {
uint64_t res;
fscanf(fp, "%zd", &res);
fclose(fp);
return res;
return res * getpagesize();
}
double get_time(void) {