Fix build on MacOS

#261
This commit is contained in:
Linus Dierheimer
2022-09-29 11:35:59 +02:00
parent 6c024d29ce
commit 40588e1a39
+1 -1
View File
@@ -10,7 +10,7 @@ static void detectRam(FFMemoryStorage* ram)
return;
}
memory->ram.bytesTotal = (uint64_t) ffSysctlGetInt64("vm.stats.vm.v_page_count", 0) * pageSize;
ram->bytesTotal = (uint64_t) ffSysctlGetInt64("vm.stats.vm.v_page_count", 0) * pageSize;
if(ram->bytesTotal == 0)
{
ffStrbufAppendS(&ram->error, "Failed to read vm.stats.vm.v_page_count");