aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-04-26 18:10:17 +0000
committerTibor Frank <tifrank@cisco.com>2018-04-26 18:14:10 +0000
commit75e2e16452f74abfb7b6d3df8edbe373ca917693 (patch)
tree4c6c20fd4453f3e99d08de8b7072a974ba7bb4d1
parentd9760c6c2404311bf63c50f1d227f210b0b5d057 (diff)
Report: Add historical data to performance changes table
Change-Id: Ia1e224ecade79c54b373ba3e8ac53c21c054f648 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 5d040b65766fa5d7d6ad111def619abb8c878b87)
-rw-r--r--resources/tools/presentation/generator_tables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index f86bc1a79f..46aa71ca48 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -468,8 +468,8 @@ def table_performance_comparison(table, input_data):
item.extend([None, None])
else:
item.extend([None, None])
- if item[-5] is not None and item[-3] is not None and item[-5] != 0:
- item.append(int(relative_change(float(item[-5]), float(item[-3]))))
+ if item[-4] is not None and item[-2] is not None and item[-4] != 0:
+ item.append(int(relative_change(float(item[-4]), float(item[-2]))))
if len(item) == len(header):
tbl_lst.append(item)