diff options
author | 2015-12-24 07:42:21 -0500 | |
---|---|---|
committer | 2015-12-24 07:42:51 -0500 | |
commit | ba297ed1bfdfbf61bc99fe7f75deb800b570c58e (patch) | |
tree | 44084f58079ae3f37b9b9b34c856fb84eaa078ff /scripts/automation/trex_control_plane/common/text_opts.py | |
parent | 3534ca500f9b2fce4a5e9a52f2df12e139501183 (diff) |
some TUI tweaks
Diffstat (limited to 'scripts/automation/trex_control_plane/common/text_opts.py')
-rwxr-xr-x | scripts/automation/trex_control_plane/common/text_opts.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |