mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
MemoryMeter: show shared memory before cached
Shared memory is less free-able than cached memory. Show it beforehand.
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user