diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-03-17 16:32:16 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-03-17 16:32:16 +0100 |
commit | 9f41dc3332a942eb4c578819e38cd40812656c2e (patch) | |
tree | 405204d3bbaf356b9eabfee16dd5429eecedc5d7 /openbsd | |
parent | d9f2eacbc5b3fccf63b24944ce9a30d762baea3c (diff) |
MemoryMeter: show shared memory before cached
Shared memory is less free-able than cached memory.
Show it beforehand.
Diffstat (limited to 'openbsd')
-rw-r--r-- | openbsd/Platform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsd/Platform.c b/openbsd/Platform.c index 606869a5..c57e6cc3 100644 --- a/openbsd/Platform.c +++ b/openbsd/Platform.c @@ -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) { |