Redo the memory values based on the other BSD implementations.

This commit is contained in:
fraggerfox 2021-06-13 05:43:54 +05:30 committed by BenBE
parent 5fe9bcb21c
commit 686309e34c
1 changed files with 3 additions and 1 deletions

View File

@ -240,7 +240,9 @@ void Platform_setMemoryValues(Meter* this) {
this->total = pl->totalMem; this->total = pl->totalMem;
this->values[0] = usedMem; this->values[0] = usedMem;
this->values[1] = buffersMem; this->values[1] = buffersMem;
this->values[2] = cachedMem; // this->values[2] = "shared memory, like tmpfs and shm"
this->values[3] = cachedMem;
// this->values[4] = "available memory"
} }
void Platform_setSwapValues(Meter* this) { void Platform_setSwapValues(Meter* this) {