diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-01-30 08:10:11 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-01-30 08:10:11 +0100 |
commit | ed69178aaddaba42d67c9def3deb8bad12129028 (patch) | |
tree | bd2dbdad30c1d74efbfcc6984173a16b972df75f | |
parent | 62d29c3e6945d0bf3c088f12fc215c168d75868e (diff) |
Report: Performance improvements
Change-Id: Id320600dd505a61c67ca0eb93917f8f9c2b1acb6
Signed-off-by: Tibor Frank <tifrank@cisco.com>
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 65917bd4a8..645892614e 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -269,7 +269,7 @@ def table_performance_improvements(table, input_data): else: tbl_item.append({"data": None}) except (IndexError, ValueError, TypeError): - logging.error("No data for {0}".format(tbl_item[1]["data"])) + logging.error("No data for {0}".format(tbl_item[0]["data"])) tbl_item.append({"data": None}) continue else: @@ -299,19 +299,19 @@ def table_performance_improvements(table, input_data): else: rel_change = item[-1]["data"] if "ndr_top" in file_name \ - and "ndr" in item[1]["data"] \ + and "ndr" in item[0]["data"] \ and rel_change >= 10.0: _write_line_to_file(file_handler, item) elif "pdr_top" in file_name \ - and "pdr" in item[1]["data"] \ + and "pdr" in item[0]["data"] \ and rel_change >= 10.0: _write_line_to_file(file_handler, item) elif "ndr_low" in file_name \ - and "ndr" in item[1]["data"] \ + and "ndr" in item[0]["data"] \ and rel_change < 10.0: _write_line_to_file(file_handler, item) elif "pdr_low" in file_name \ - and "pdr" in item[1]["data"] \ + and "pdr" in item[0]["data"] \ and rel_change < 10.0: _write_line_to_file(file_handler, item) |