Add some stuff

This commit is contained in:
Steel Titanium 2018-09-20 18:33:50 -04:00
parent a53f036149
commit 378495cb2b

View file

@ -2810,6 +2810,12 @@ UINT32 I_GetFreeMem(UINT32 *total)
UINT32 totalKBytes;
INT32 n;
INT32 meminfo_fd = -1;
long Cached;
long MemFree;
long Buffers;
long Shmem;
long MemAvailable = -1;
boolean guessed = false; // Stupid way to verify if the amount was guessed or not.
meminfo_fd = open(MEMINFO_FILE, O_RDONLY);
n = read(meminfo_fd, buf, 1023);