X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=b3e28dda8b6a85ca22eca946509f1546fb6a4bbb;hp=6792b0bcc1bdf29a78ed57806d5aca4a1489501a;hb=97b7e5fc8b7c1fc8127bc23b383167f04684b5ee;hpb=936155da5e05d87ce8a247ddb744090e99d055bb diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 6792b0bcc1..b3e28dda8b 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -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 = int(round(val_d, 0)) diff[c - 1].append(val_d) # Colorscales: