Cycles/Windows: Fix over estimation of System RAM.
`system_physical_ram` reported 1024x more System RAM than what was actually available.
This commit is contained in:
parent
d9be59e872
commit
3df04851cf
|
@ -357,7 +357,7 @@ size_t system_physical_ram()
|
|||
MEMORYSTATUSEX ram;
|
||||
ram.dwLength = sizeof(ram);
|
||||
GlobalMemoryStatusEx(&ram);
|
||||
return ram.ullTotalPhys * 1024;
|
||||
return ram.ullTotalPhys;
|
||||
#elif defined(__APPLE__)
|
||||
uint64_t ram = 0;
|
||||
size_t len = sizeof(ram);
|
||||
|
|
Loading…
Reference in New Issue