From 320a96423f0f4b9b95cd1488678c88baf712fce1 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Mon, 8 Jun 2015 19:28:23 +0200 Subject: [PATCH] Add a 5% grace to the RAM check because Linux MemTotal is unreliable. --- src/modules/welcome/checker/RequirementsChecker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/welcome/checker/RequirementsChecker.cpp b/src/modules/welcome/checker/RequirementsChecker.cpp index a97069b8b..9cef95043 100644 --- a/src/modules/welcome/checker/RequirementsChecker.cpp +++ b/src/modules/welcome/checker/RequirementsChecker.cpp @@ -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 }