Only try to allocate 1GB of Z3 if we have >2GB system RAM
This commit is contained in:
parent
d9117d4276
commit
f6d8d467ee
1 changed files with 2 additions and 2 deletions
|
@ -63,8 +63,8 @@ bool can_have_1gb()
|
|||
sysinfo(&mem_info);
|
||||
long long total_phys_mem = mem_info.totalram;
|
||||
total_phys_mem *= mem_info.mem_unit;
|
||||
// Do we have more than 1GB in the system?
|
||||
if (total_phys_mem > 1024 * 1024 * 1024)
|
||||
// Do we have more than 2GB in the system?
|
||||
if (total_phys_mem > 2048 * 1024 * 1024)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue