Add a 5% grace to the RAM check because Linux MemTotal is unreliable.

This commit is contained in:
Teo Mrnjavac 2015-06-08 19:28:23 +02:00
parent df579ae144
commit 320a96423f

View File

@ -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
}