mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue