X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_plots.py;h=cc9d880398aedc69dc5f2a60b4df561b8fcda10e;hb=4dbdc6dc88ca89cb01d2209fc69c0ea182a730d5;hp=28490074736304185bb0b080e43524a40536e14b;hpb=fb76ee6b1de48b36d2c2170507c4aadd4bc95d85;p=csit.git diff --git a/resources/tools/presentation/generator_plots.py b/resources/tools/presentation/generator_plots.py index 2849007473..cc9d880398 100644 --- a/resources/tools/presentation/generator_plots.py +++ b/resources/tools/presentation/generator_plots.py @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Cisco and/or its affiliates. +# Copyright (c) 2023 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -795,7 +795,10 @@ def plot_perf_box_name(plot, input_data): try: val_max = max(df_y[col]) if val_max: - y_max.append(int(val_max / 1e6)) + if test_type in (u"VSAP_CPS", u"VSAP_RPS"): + y_max.append(int(val_max)) + else: + y_max.append(int(val_max / 1e6)) except (ValueError, TypeError) as err: logging.error(repr(err)) continue @@ -1215,6 +1218,10 @@ def plot_tsa_name(plot, input_data): limit = plot[u"limits"][u"nic"][u"cx556a"] elif u"e810cq" in test_name: limit = plot[u"limits"][u"nic"][u"e810cq"] + elif u"e810xxv" in test_name: + limit = plot[u"limits"][u"nic"][u"e810xxv"] + elif u"e822cq" in test_name: + limit = plot[u"limits"][u"nic"][u"e822cq"] else: limit = 0 if limit > nic_limit: