mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
MemoryMeter: show shared memory before cached
Shared memory is less free-able than cached memory. Show it beforehand.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user