From ba297ed1bfdfbf61bc99fe7f75deb800b570c58e Mon Sep 17 00:00:00 2001 From: imarom Date: Thu, 24 Dec 2015 07:42:21 -0500 Subject: some TUI tweaks --- scripts/automation/trex_control_plane/common/text_opts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/automation/trex_control_plane/common/text_opts.py') diff --git a/scripts/automation/trex_control_plane/common/text_opts.py b/scripts/automation/trex_control_plane/common/text_opts.py index 6c83bc6e..29fbd69b 100755 --- a/scripts/automation/trex_control_plane/common/text_opts.py +++ b/scripts/automation/trex_control_plane/common/text_opts.py @@ -125,10 +125,10 @@ def format_text(text, *args): return return_string def format_threshold (value, red_zone, green_zone): - if value > red_zone[0] and value < red_zone[1]: + if value >= red_zone[0] and value <= red_zone[1]: return format_text("{0}".format(value), 'red') - if value > green_zone[0] and value < green_zone[1]: + if value >= green_zone[0] and value <= green_zone[1]: return format_text("{0}".format(value), 'green') return "{0}".format(value) -- cgit 1.2.3-korg