aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2017-07-26 13:16:30 +0200
committerTibor Frank <tifrank@cisco.com>2017-07-26 11:40:42 +0000
commit20c0f283d2f3b9403f39e3b22d5ec7ecc3fd9304 (patch)
tree7072bf7872820437719f078a18119b33a39ccf5e /resources/tools
parentff75c9add9cb7a73fb30f7373d3d11f58b1782a2 (diff)
Add memif to report
Change-Id: Ie62a4d8b324e6557d9fdf9e37835bb79770bb7e5 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit a459a83441b1eaa6268238c53e41f84753b1e76c)
Diffstat (limited to 'resources/tools')
-rwxr-xr-xresources/tools/report_gen/run_improvments_tables.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/report_gen/run_improvments_tables.py b/resources/tools/report_gen/run_improvments_tables.py
index 6b4953c00b..ebdfd60f14 100755
--- a/resources/tools/report_gen/run_improvments_tables.py
+++ b/resources/tools/report_gen/run_improvments_tables.py
@@ -173,10 +173,10 @@ def main():
mean, stdev = calculate_stats(item["rates"])
if mean is not None:
mean = float(mean) / 1000000
- old = float(item["last_old"])
+ old = float(item["last_old"]) if item["last_old"] else None
item["mean"] = mean
item["change"] = ((round(mean, 1) - round(old, 1)) / round(old, 1))\
- * 100
+ * 100 if old else None
item["stdev"] = stdev / 1000000
# Sort the list, key = change