From ed69178aaddaba42d67c9def3deb8bad12129028 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Tue, 30 Jan 2018 08:10:11 +0100 Subject: Report: Performance improvements Change-Id: Id320600dd505a61c67ca0eb93917f8f9c2b1acb6 Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_tables.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'resources/tools') 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) -- cgit 1.2.3-korg