aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-04-23 12:20:20 +0200
committerTibor Frank <tifrank@cisco.com>2018-04-23 12:20:20 +0200
commitcd330b5a1bf1a289e7dad68420679a5d94de1eda (patch)
treecae9454b836e4dd48353b1a891e6ba336883c990 /resources/tools
parent85a5bd538583f33dc63e072cfa4b3b6750958191 (diff)
CSIT-1041: Trending dashboard
Change-Id: I99b7acbbf6c773a4d2c5fc74cf7ba02aa6f98fa3 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r--resources/tools/presentation/generator_tables.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index 59162444dc..238102da9a 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -790,7 +790,8 @@ def table_performance_trending_dashboard(table, input_data):
break
for idx in range(index+1, len(classification_lst)):
if classification_lst[idx] == tmp_classification:
- if rel_change_lst[idx] > rel_change_lst[index]:
+ if (abs(rel_change_lst[idx]) >
+ abs(rel_change_lst[index])):
index = idx
trend = round(float(median_lst[-1]) / 1000000, 2) \