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

@ -208,7 +208,9 @@ void Platform_setMemoryValues(Meter* this) {
this->total = pl->totalMem;
this->values[0] = usedMem;
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) {