aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2017-10-31 16:25:02 +0100
committerTibor Frank <tifrank@cisco.com>2017-10-31 16:25:02 +0100
commit45790e85151194fdea40530a31d5181bb4b21e85 (patch)
tree1d8b04b0a3be7a7a9dda279aaf754bb95ce0b07d /resources/tools/presentation/generator_tables.py
parentcc9febdb8521eb12c3a535b34804664da1dd779e (diff)
Report: data
Change-Id: I55b715aefd4d9d2e95010a445e6cef880875d0f1 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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index af5fcd1f57..e66047f9bc 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -183,12 +183,13 @@ def table_performance_improvements(table, input_data):
for build in data[job]:
try:
data_lst.append(float(build[tmpl_item[0]]["throughput"]
- ["value"]) / 1000000)
+ ["value"]))
except (KeyError, TypeError):
# No data, ignore
continue
if data_lst:
- tbl_item.append({"data": eval(operation)(data_lst)})
+ tbl_item.append({"data": (eval(operation)(data_lst)) /
+ 1000000})
else:
tbl_item.append({"data": None})
elif cmd == "operation":