macos: wrong, wrong, wrong.

1) test stuff more.
2) Don't have too many SSH sessions open and querying the wrong
machines!!!
This commit is contained in:
Alastair Poole 2020-07-09 22:13:25 +01:00
parent 554eae2965
commit 9ed9bd3bb5
1 changed files with 1 additions and 1 deletions

View File

@ -598,7 +598,7 @@ swap_out:
host_statistics64(mach_port, HOST_VM_INFO,
(host_info64_t)&vm_stats, &count) == KERN_SUCCESS)
{
memory->used = memory->total - (vm_stats.inactive_count * page_size);
memory->used = (vm_stats.active_count + vm_stats.wire_count) * page_size;
memory->cached = vm_stats.active_count * page_size;
memory->shared = vm_stats.wire_count * page_size;
memory->buffered = vm_stats.inactive_count * page_size;