diff --git a/install/variables/autopartition.py b/install/variables/autopartition.py index eebb320..63c44cf 100644 --- a/install/variables/autopartition.py +++ b/install/variables/autopartition.py @@ -112,7 +112,10 @@ class VariableHrMemorySize(ReadonlyVariable): map(reMemTotal.search, readLinesFile('/proc/meminfo'))) if totalMemList: - return str(int(totalMemList[0].group(1))*1024) + size = int(totalMemList[0].group(1))*1024 + if size < 1024*1024*1024: + size = 1024*1024*1024 + return str(size) return "0" def humanReadable(self):