diff --git a/src/detection/memory/memory_bsd.c b/src/detection/memory/memory_bsd.c index d4c1ff4d4..55f34c83c 100644 --- a/src/detection/memory/memory_bsd.c +++ b/src/detection/memory/memory_bsd.c @@ -17,7 +17,7 @@ static void detectRam(FFMemoryStorage* ram) return; } - memory->ram.bytesUsed = memory->ram.bytesTotal + ram->bytesUsed = ram->bytesTotal - (uint64_t) ffSysctlGetInt64("vm.stats.vm.v_free_count", 0) * pageSize - (uint64_t) ffSysctlGetInt64("vm.stats.vm.v_inactive_count", 0) * pageSize ;