Skip to content

Commit b8656d5

Browse files
Fix build on BSD
1 parent c848661 commit b8656d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/detection/memory/memory_bsd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static void detectRam(FFMemoryStorage* ram)
1717
return;
1818
}
1919

20-
memory->ram.bytesUsed = memory->ram.bytesTotal
20+
ram->bytesUsed = ram->bytesTotal
2121
- (uint64_t) ffSysctlGetInt64("vm.stats.vm.v_free_count", 0) * pageSize
2222
- (uint64_t) ffSysctlGetInt64("vm.stats.vm.v_inactive_count", 0) * pageSize
2323
;

0 commit comments

Comments
 (0)