aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-01-30 08:10:11 +0100
committerTibor Frank <tifrank@cisco.com>2018-01-30 08:10:11 +0100
commited69178aaddaba42d67c9def3deb8bad12129028 (patch)
treebd2dbdad30c1d74efbfcc6984173a16b972df75f /resources/tools/presentation/generator_tables.py
parent62d29c3e6945d0bf3c088f12fc215c168d75868e (diff)
Report: Performance improvements
Change-Id: Id320600dd505a61c67ca0eb93917f8f9c2b1acb6 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py10
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)