summaryrefslogtreecommitdiffstats
path: root/textw/upgrade_text.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-11 20:05:14 +0000
committerMike Fulbright <msf@redhat.com>2001-07-11 20:05:14 +0000
commit7190081a6b78bcf6c032e78262e30c2043016d3c (patch)
treea457da2aa8aa6e39e6e67dcef0ac0acec4c50e8d /textw/upgrade_text.py
parentaf2101a14a05fe4f9579b795516941eab997c766 (diff)
downloadanaconda-7190081a6b78bcf6c032e78262e30c2043016d3c.tar.gz
anaconda-7190081a6b78bcf6c032e78262e30c2043016d3c.tar.xz
anaconda-7190081a6b78bcf6c032e78262e30c2043016d3c.zip
reported RAM detected in upgrade swapfile screen
Diffstat (limited to 'textw/upgrade_text.py')
-rw-r--r--textw/upgrade_text.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/textw/upgrade_text.py b/textw/upgrade_text.py
index 5ccdd953b..4abd9c60c 100644
--- a/textw/upgrade_text.py
+++ b/textw/upgrade_text.py
@@ -91,6 +91,8 @@ class UpgradeSwapWindow:
(fsList, suggSize, suggMntPoint) = rc
+ ramDetected = iutil.memInstalled()/1024
+
text = _("The 2.4 kernel needs significantly more swap than older "
"kernels, as much as twice as much swap space as RAM on the "
"system. You currently have %dMB of swap configured, but "
@@ -123,13 +125,16 @@ class UpgradeSwapWindow:
buttons = ButtonBar(screen, [TEXT_OK_BUTTON, (_("Skip"), "skip"),
TEXT_BACK_BUTTON] )
- amGrid = Grid(2, 2)
- amGrid.setField(Label(_("Suggested size (MB):")), 0, 0, anchorLeft = 1,
+ amGrid = Grid(2, 3)
+ amGrid.setField(Label(_("RAM detected (MB):")), 0, 0, anchorLeft = 1,
+ padding = (0, 0, 1, 0))
+ amGrid.setField(Label(str(ramDetected)), 1, 0, anchorLeft = 1)
+ amGrid.setField(Label(_("Suggested size (MB):")), 0, 1, anchorLeft = 1,
padding = (0, 0, 1, 0))
- amGrid.setField(Label(str(suggSize)), 1, 0, anchorLeft = 1)
- amGrid.setField(Label(_("Swap file size (MB):")), 0, 1, anchorLeft = 1,
+ amGrid.setField(Label(str(suggSize)), 1, 1, anchorLeft = 1)
+ amGrid.setField(Label(_("Swap file size (MB):")), 0, 2, anchorLeft = 1,
padding = (0, 0, 1, 0))
- amGrid.setField(amount, 1, 1)
+ amGrid.setField(amount, 1, 2)
liGrid = Grid(1, 2)
liGrid.setField(liLabel, 0, 0)