FreeBSD: don't use v_cache_min/max (https://github.com/hyperic/sigar/pull/68)

This commit is contained in:
Justin Baugh 2018-04-10 09:02:28 -07:00
parent ad47dc3b49
commit 800076db97
1 changed files with 4 additions and 2 deletions

View File

@ -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);