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 /darwin | |
parent | d9f2eacbc5b3fccf63b24944ce9a30d762baea3c (diff) |
MemoryMeter: show shared memory before cached
Shared memory is less free-able than cached memory.
Show it beforehand.
Diffstat (limited to 'darwin')
-rw-r--r-- | darwin/Platform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/darwin/Platform.c b/darwin/Platform.c index 1d2b0f4f..932b1832 100644 --- a/darwin/Platform.c +++ b/darwin/Platform.c @@ -241,7 +241,9 @@ void Platform_setMemoryValues(Meter* mtr) { mtr->total = dpl->host_info.max_mem / 1024; mtr->values[0] = (double)(vm->active_count + vm->wire_count) * page_K; mtr->values[1] = (double)vm->purgeable_count * page_K; - mtr->values[2] = (double)vm->inactive_count * page_K; + // mtr->values[2] = "shared memory, like tmpfs and shm" + mtr->values[3] = (double)vm->inactive_count * page_K; + // mtr->values[4] = "available memory" } void Platform_setSwapValues(Meter* mtr) { |