version 1.4, 2018/06/21 13:47:22 |
version 1.5, 2019/06/28 13:35:04 |
|
|
memcpy(&last_uvmexp, &uvmexp, sizeof(uvmexp)); |
memcpy(&last_uvmexp, &uvmexp, sizeof(uvmexp)); |
|
|
size = sizeof(uvmexp); |
size = sizeof(uvmexp); |
if (sysctl(uvmexp_mib, 2, &uvmexp, &size, NULL, 0) < 0) { |
if (sysctl(uvmexp_mib, 2, &uvmexp, &size, NULL, 0) == -1) { |
error("Can't get VM_UVMEXP: %s\n", strerror(errno)); |
error("Can't get VM_UVMEXP: %s\n", strerror(errno)); |
memset(&uvmexp, 0, sizeof(uvmexp)); |
memset(&uvmexp, 0, sizeof(uvmexp)); |
} |
} |