MemoryMeter: show shared memory before cached

Shared memory is less free-able than cached memory.

Show it beforehand.
This commit is contained in:
Christian Göttsche
2021-03-17 16:32:16 +01:00
parent d9f2eacbc5
commit 9f41dc3332
7 changed files with 27 additions and 17 deletions

View File

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