mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 09:25:36 -04:00
Add a 5% grace to the RAM check because Linux MemTotal is unreliable.
This commit is contained in:
parent
df579ae144
commit
320a96423f
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ RequirementsChecker::checkEnoughRam( qint64 requiredRam )
|
||||||
QString memoryLine = p.readAllStandardOutput().simplified();
|
QString memoryLine = p.readAllStandardOutput().simplified();
|
||||||
qint64 availableRam = memoryLine.toLongLong() * 1024;
|
qint64 availableRam = memoryLine.toLongLong() * 1024;
|
||||||
|
|
||||||
return availableRam >= requiredRam;
|
return availableRam >= requiredRam * 0.95; // because MemTotal is variable
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue