aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-04-13 10:29:14 +0200
committerTibor Frank <tifrank@cisco.com>2018-04-13 10:29:14 +0200
commit4a778c818108baf64a5abe6ffd6b27a4a88a2633 (patch)
tree56401270fee9ad436a1fb901eb642f484966b10d /resources
parent482bb432e9607bce6cb92d41bf9e299c0e2fc288 (diff)
CSIT-1041: Trending dashboard
Change-Id: I26aaf33a3df4d38fddadcfc7191900d80c02f855 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/presentation/generator_tables.py2
-rw-r--r--resources/tools/presentation/specification_CPTA.yaml2
2 files changed, 2 insertions, 2 deletions
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)"