CSIT-1492: Add NF density tests 49/19449/1
authorTibor Frank <tifrank@cisco.com>
Thu, 9 May 2019 07:39:55 +0000 (09:39 +0200)
committerTibor Frank <tifrank@cisco.com>
Thu, 9 May 2019 07:39:55 +0000 (09:39 +0200)
Change-Id: I6723485ce71262de13e703b975a551d97f18e968
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_plots.py

index 6792b0b..b07f036 100644 (file)
@@ -1479,7 +1479,7 @@ def plot_service_density_heatmap_compare(plot, input_data):
             except (KeyError, IndexError):
                 val_c = None
             if val_c is not None and val_r:
-                val_d = (val_c - val_r) / val_r
+                val_d = (val_c - val_r) * 100 / val_r
             else:
                 val_d = None
 
@@ -1490,7 +1490,7 @@ def plot_service_density_heatmap_compare(plot, input_data):
                 val_c = round(val_c / 1000000, 1)
             data_c[c - 1].append(val_c)
             if val_d is not None:
-                val_d = round(val_d / 10000, 1)
+                val_d = round(val_d, 1)
             diff[c - 1].append(val_d)
 
     # Colorscales:

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.