aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_tables.py
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/tools/presentation/generator_tables.py
parent482bb432e9607bce6cb92d41bf9e299c0e2fc288 (diff)
CSIT-1041: Trending dashboard
Change-Id: I26aaf33a3df4d38fddadcfc7191900d80c02f855 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-rw-r--r--resources/tools/presentation/generator_tables.py2
1 files changed, 1 insertions, 1 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: