Skip to content

Commit 800076d

Browse files
author
Justin Baugh
committed
FreeBSD: don't use v_cache_min/max (hyperic#68)
1 parent ad47dc3 commit 800076d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/os/darwin/darwin_sigar.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,10 @@ static int sigar_vmstat(sigar_t *sigar, struct vmmeter *vmstat)
400400
GET_VM_STATS(vm, v_inactive_target, 0);
401401
GET_VM_STATS(vm, v_inactive_count, 1);
402402
GET_VM_STATS(vm, v_cache_count, 1);
403-
GET_VM_STATS(vm, v_cache_min, 0);
404-
GET_VM_STATS(vm, v_cache_max, 0);
403+
#if (__FreeBSD_version < 1100079)
404+
GET_VM_STATS(vm, v_cache_min, 0);
405+
GET_VM_STATS(vm, v_cache_max, 0);
406+
#endif
405407
GET_VM_STATS(vm, v_pageout_free_min, 0);
406408
GET_VM_STATS(vm, v_interrupt_free_min, 0);
407409
GET_VM_STATS(vm, v_forks, 0);

0 commit comments

Comments
 (0)