From 69a505d69cb69018b1581103e0dcbab5f7a0d6b1 Mon Sep 17 00:00:00 2001 From: Kevin Bracey Date: Sun, 9 Jan 2022 13:27:52 +0200 Subject: Move shared memory next to used memory Shared memory is less available than buffers, so move it left next to used memory. This is in preparation for including shared memory in the basic "in use" for the bar text. It would not make sense to sum a discontiguous region. --- dragonflybsd/Platform.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dragonflybsd') diff --git a/dragonflybsd/Platform.c b/dragonflybsd/Platform.c index d94d7a18..ff2300aa 100644 --- a/dragonflybsd/Platform.c +++ b/dragonflybsd/Platform.c @@ -214,9 +214,9 @@ void Platform_setMemoryValues(Meter* this) { this->total = host->totalMem; this->values[MEMORY_METER_USED] = host->usedMem; - this->values[MEMORY_METER_BUFFERS] = host->buffersMem; // this->values[MEMORY_METER_SHARED] = "shared memory, like tmpfs and shm" - // mtr->values[MEMORY_METER_COMPRESSED] = "compressed memory, like zswap on linux" + // this->values[MEMORY_METER_COMPRESSED] = "compressed memory, like zswap on linux" + this->values[MEMORY_METER_BUFFERS] = host->buffersMem; this->values[MEMORY_METER_CACHE] = host->cachedMem; // this->values[MEMORY_METER_AVAILABLE] = "available memory" } -- cgit v1.2.3