summaryrefslogtreecommitdiffstats
path: root/dragonflybsd
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-03-17 16:32:16 +0100
committerChristian Göttsche <cgzones@googlemail.com>2021-03-17 16:32:16 +0100
commit9f41dc3332a942eb4c578819e38cd40812656c2e (patch)
tree405204d3bbaf356b9eabfee16dd5429eecedc5d7 /dragonflybsd
parentd9f2eacbc5b3fccf63b24944ce9a30d762baea3c (diff)
MemoryMeter: show shared memory before cached
Shared memory is less free-able than cached memory. Show it beforehand.
Diffstat (limited to 'dragonflybsd')
-rw-r--r--dragonflybsd/Platform.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c
index 3646e33a..1bbbf2c4 100644
--- a/dragonflybsd/Platform.c
+++ b/dragonflybsd/Platform.c
@@ -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) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy