[PATCH 2/3] Remove an unused MEM-related constant and use the other one
Vratislav Podzimek
vpodzime at redhat.com
Mon Jul 21 15:15:12 UTC 2014
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
anaconda | 2 +-
pyanaconda/isys/__init__.py | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/anaconda b/anaconda
index 05320be..c7c5efe 100755
--- a/anaconda
+++ b/anaconda
@@ -600,7 +600,7 @@ def check_memory(anaconda, options, display_mode=None):
reason = reason_strict
total_ram = int(isys.total_memory() / 1024)
needed_ram = int(isys.MIN_RAM / 1024)
- graphical_ram = needed_ram + int(isys.GUI_INSTALL_EXTRA_RAM / 1024)
+ graphical_ram = int(isys.MIN_GUI_RAM / 1024)
log.info("check_memory(): total:%s, needed:%s, graphical:%s",
total_ram, needed_ram, graphical_ram)
diff --git a/pyanaconda/isys/__init__.py b/pyanaconda/isys/__init__.py
index aa8c978..eee5e95 100644
--- a/pyanaconda/isys/__init__.py
+++ b/pyanaconda/isys/__init__.py
@@ -53,7 +53,6 @@ else:
GUI_INSTALL_EXTRA_RAM = 0
MIN_GUI_RAM = MIN_RAM + GUI_INSTALL_EXTRA_RAM
-EARLY_SWAP_RAM = 896 * 1024
## Flush filesystem buffers.
def sync ():
--
1.9.3
More information about the anaconda-patches
mailing list