From: Tibor Frank Date: Fri, 13 Apr 2018 08:29:14 +0000 (+0200) Subject: CSIT-1041: Trending dashboard X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=4a778c818108baf64a5abe6ffd6b27a4a88a2633;ds=sidebyside CSIT-1041: Trending dashboard Change-Id: I26aaf33a3df4d38fddadcfc7191900d80c02f855 Signed-off-by: Tibor Frank --- diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 65bf6d562e..814fbe450c 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -595,7 +595,7 @@ def table_performance_trending_dashboard(table, input_data): else: anomaly = "normal" - if not isnan(last) and not isnan(trend): + if not isnan(last) and not isnan(trend) and trend != 0: # Change: change = round(float(last - trend) / 1000000, 2) # Relative change: diff --git a/resources/tools/presentation/specification_CPTA.yaml b/resources/tools/presentation/specification_CPTA.yaml index 510c932077..d4317e3f37 100644 --- a/resources/tools/presentation/specification_CPTA.yaml +++ b/resources/tools/presentation/specification_CPTA.yaml @@ -90,7 +90,7 @@ yaxis: showticklabels: True tickformat: ".3s" - title: "Throughput [Mpps]" + title: "Throughput [pps]" hoverformat: ".4s" range: [] gridcolor: "rgb(238, 238, 238)"