X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=40ba60d0ade8bf18cab2ff452fbabb0a907d3abb;hb=44186cb43aaa4131f676d9d18f8f573823ec9512;hp=42f450e68838835597a00fba4d35c60baabe522d;hpb=7bcbdcb30d2eea8fe7e1fb60696e39abef897920;p=csit.git diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 42f450e688..40ba60d0ad 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -477,8 +477,10 @@ def plot_perf_box_name(plot, input_data): # Create plot layout = deepcopy(plot[u"layout"]) if layout.get(u"title", None): - if test_type in (u"HOSTSTACK", u"CPS"): + if test_type in (u"HOSTSTACK", ): layout[u"title"] = f"Bandwidth: {layout[u'title']}" + elif test_type in (u"CPS", ): + layout[u"title"] = f"CPS: {layout[u'title']}" else: layout[u"title"] = f"Throughput: {layout[u'title']}" if y_max: @@ -546,7 +548,7 @@ def plot_tsa_name(plot, input_data): u"4": list() } try: - if test[u"type"] not in (u"NDRPDR",): + if test[u"type"] not in (u"NDRPDR", u"CPS"): continue if u"-pdr" in plot_title: @@ -682,7 +684,7 @@ def plot_tsa_name(plot, input_data): x_vals = [1, 2, 4] # Limits: - if u"-gbps" not in plot_title: + if u"-gbps" not in plot_title and u"-cps-" not in plot_title: nic_limit /= 1e6 lnk_limit /= 1e6 pci_limit /= 1e6