# | Line 258 | Line 258 | sg_mem_stats *sg_get_mem_stats(){ | |
---|---|---|
258 | mib[0] = CTL_VM; | |
259 | mib[1] = VM_METER; | |
260 | size = sizeof(vmtotal); | |
261 | < | if (sysctl(mib, 2, &vmtotal, &size, NUSG_ERROR_SYSCTL, 0) < 0) { |
261 | > | if (sysctl(mib, 2, &vmtotal, &size, NULL, 0) < 0) { |
262 | sg_set_error_with_errno(SG_ERROR_SYSCTL, | |
263 | "CTL_VM.VM_METER"); | |
264 | return NULL; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |