From 3efb61effdb2dc92f9670bf25c5c8b24eef557f7 Mon Sep 17 00:00:00 2001 From: Martin Kolman Date: Thu, 19 May 2016 18:20:31 +0200 Subject: [PATCH] Show range of valid reserved memory values in TUI Show range of valid reserved memory values in TUI to make it easier for the user to select a correct value. --- com_redhat_kdump/tui/spokes/kdump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com_redhat_kdump/tui/spokes/kdump.py b/com_redhat_kdump/tui/spokes/kdump.py index 7a74011..fad1482 100644 --- a/com_redhat_kdump/tui/spokes/kdump.py +++ b/com_redhat_kdump/tui/spokes/kdump.py @@ -56,11 +56,11 @@ def match(self, key): class KdumpSpoke(EditTUISpoke): title = N_("Kdump") category = SystemCategory - + lower, upper ,_step = getMemoryBounds() edit_fields = [ Entry("Enable kdump", "enabled", EditTUISpoke.CHECK, True), Entry("Enable dump mode fadump", "enablefadump", EditTUISpoke.CHECK, os.path.exists(FADUMP_CAPABLE_FILE) and (lambda self,args: args.enabled)), - Entry("Reserve amount(MB)", "reserveMB", RESERVE_VALID, lambda self,args: args.enabled) + Entry("Reserve amount (%d - %d MB)" % (lower, upper), "reserveMB", RESERVE_VALID, lambda self,args: args.enabled) ] @classmethod