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:
Ray molenkamp 2019-08-26 18:34:54 -06:00
parent d9be59e872
commit 3df04851cf
1 changed files with 1 additions and 1 deletions

View File

@ -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);