diff options
author | Ray Molenkamp <github@lazydodo.com> | 2019-08-27 03:34:54 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2019-08-27 03:34:54 +0300 |
commit | 3df04851cfa0e2091c96c3aa10f1c6e8e1075016 (patch) | |
tree | 38df4d7c2cdb2330f182f5655f9339dcdeaa0c9f | |
parent | d9be59e872f8a112f31b73f07fe41efb51a08ad9 (diff) |
Cycles/Windows: Fix over estimation of System RAM.
`system_physical_ram` reported 1024x more System RAM than what
was actually available.
-rw-r--r-- | intern/cycles/util/util_system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/util/util_system.cpp b/intern/cycles/util/util_system.cpp index 0cd991c6231..f700f9bd277 100644 --- a/intern/cycles/util/util_system.cpp +++ b/intern/cycles/util/util_system.cpp @@ -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); |