From 9f41dc3332a942eb4c578819e38cd40812656c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Wed, 17 Mar 2021 16:32:16 +0100 Subject: MemoryMeter: show shared memory before cached Shared memory is less free-able than cached memory. Show it beforehand. --- dragonflybsd/Platform.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dragonflybsd') 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) { -- cgit v1.2.3