X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=379205cbeaebbcae0c9db10b8796f985d87840cd;hp=e66047f9bcb68f6887c517951f3889fdc00ee567;hb=0d53d645a6d78b581e7ad1e257af4f943a52f465;hpb=45790e85151194fdea40530a31d5181bb4b21e85 diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index e66047f9bc..379205cbea 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -229,19 +229,19 @@ def table_performance_improvements(table, input_data): for item in tbl_lst: if "ndr_top" in file_name \ and "ndr" in item[1]["data"] \ - and item[-1]["data"] >= 10.0: + and round(item[-1]["data"], 1) >= 10.0: _write_line_to_file(file_handler, item) elif "pdr_top" in file_name \ and "pdr" in item[1]["data"] \ - and item[-1]["data"] >= 10.0: + and round(item[-1]["data"], 1) >= 10.0: _write_line_to_file(file_handler, item) elif "ndr_low" in file_name \ and "ndr" in item[1]["data"] \ - and item[-1]["data"] < 10.0: + and round(item[-1]["data"], 1) < 10.0: _write_line_to_file(file_handler, item) elif "pdr_low" in file_name \ and "pdr" in item[1]["data"] \ - and item[-1]["data"] < 10.0: + and round(item[-1]["data"], 1) < 10.0: _write_line_to_file(file_handler, item) logging.info(" Done.")