summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iw/rootpartition_gui.py3
-rw-r--r--textw/partitioning_text.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/iw/rootpartition_gui.py b/iw/rootpartition_gui.py
index 746a8f6b7..301118ad3 100644
--- a/iw/rootpartition_gui.py
+++ b/iw/rootpartition_gui.py
@@ -42,7 +42,8 @@ class PartitionWindow (InstallWindow):
self.swapon = 0
def checkSwap (self):
- if PartitionWindow.swapon or (iutil.memInstalled() > 34000):
+ if PartitionWindow.swapon or (iutil.memInstalled() >
+ isys.EARLY_SWAP_RAM):
return 1
threads_leave ()
diff --git a/textw/partitioning_text.py b/textw/partitioning_text.py
index 830685947..23029e3e3 100644
--- a/textw/partitioning_text.py
+++ b/textw/partitioning_text.py
@@ -206,7 +206,7 @@ class TurnOnSwapWindow:
beenTurnedOn = 0
def __call__(self, screen, todo):
- if self.beenTurnedOn or (iutil.memInstalled() > 34000):
+ if self.beenTurnedOn or (iutil.memInstalled() > isys.EARLY_SWAP_RAM):
return INSTALL_NOOP
if not todo.instClass.earlySwapOn: