From 800076db97bcacb1ba90805d740b4f9a5a1d3cca Mon Sep 17 00:00:00 2001 From: Justin Baugh Date: Tue, 10 Apr 2018 09:02:28 -0700 Subject: [PATCH] FreeBSD: don't use v_cache_min/max (https://github.com/hyperic/sigar/pull/68) --- src/os/darwin/darwin_sigar.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index ae9fd117..3f187a0b 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -400,8 +400,10 @@ static int sigar_vmstat(sigar_t *sigar, struct vmmeter *vmstat) GET_VM_STATS(vm, v_inactive_target, 0); GET_VM_STATS(vm, v_inactive_count, 1); GET_VM_STATS(vm, v_cache_count, 1); - GET_VM_STATS(vm, v_cache_min, 0); - GET_VM_STATS(vm, v_cache_max, 0); +#if (__FreeBSD_version < 1100079) + GET_VM_STATS(vm, v_cache_min, 0); + GET_VM_STATS(vm, v_cache_max, 0); +#endif GET_VM_STATS(vm, v_pageout_free_min, 0); GET_VM_STATS(vm, v_interrupt_free_min, 0); GET_VM_STATS(vm, v_forks, 0);