Add a 5% grace to the RAM check because Linux MemTotal is unreliable.
This commit is contained in:
parent
df579ae144
commit
320a96423f
@ -239,7 +239,7 @@ RequirementsChecker::checkEnoughRam( qint64 requiredRam )
|
||||
QString memoryLine = p.readAllStandardOutput().simplified();
|
||||
qint64 availableRam = memoryLine.toLongLong() * 1024;
|
||||
|
||||
return availableRam >= requiredRam;
|
||||
return availableRam >= requiredRam * 0.95; // because MemTotal is variable
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user