diff options
author | Kevin Bracey <kevin@bracey.fi> | 2022-01-09 13:27:52 +0200 |
---|---|---|
committer | Ivan Shapovalov <intelfx@intelfx.name> | 2023-10-26 03:14:33 +0400 |
commit | 69a505d69cb69018b1581103e0dcbab5f7a0d6b1 (patch) | |
tree | 0353879bf12086f2bccde9140aa08a4d1966f186 /darwin | |
parent | 09934e6630621f05e8c339c0633ef9eb24f1fc2c (diff) |
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.
Diffstat (limited to 'darwin')
-rw-r--r-- | darwin/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index 6a9c2184..f72f8aec 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -292,9 +292,9 @@ void Platform_setMemoryValues(Meter* mtr) { mtr->total = dhost->host_info.max_mem / 1024; mtr->values[MEMORY_METER_USED] = (double)(vm->active_count + vm->wire_count) * page_K; - mtr->values[MEMORY_METER_BUFFERS] = (double)vm->purgeable_count * page_K; // mtr->values[MEMORY_METER_SHARED] = "shared memory, like tmpfs and shm" // mtr->values[MEMORY_METER_COMPRESSED] = "compressed memory, like zswap on linux" + mtr->values[MEMORY_METER_BUFFERS] = (double)vm->purgeable_count * page_K; mtr->values[MEMORY_METER_CACHE] = (double)vm->inactive_count * page_K; // mtr->values[MEMORY_METER_AVAILABLE] = "available memory" } |