diff options
author | Tibor Frank <tifrank@cisco.com> | 2018-04-23 13:30:48 +0200 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2018-04-23 11:33:16 +0000 |
commit | 46ece08d0a679cc97526b4ea7188ca138f8b4e01 (patch) | |
tree | 0831cc32e1020c3ac8e319b01e03ddce9f470f29 | |
parent | 179b1fd92324163a5375be388240eb91fe7e7004 (diff) |
CSIT-1041: Trending dashboard
Change-Id: I3b8e545bd198281af502acc6e23268e840112423
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 7aa0d625baca67d9789b5db3da2ee468597d254b)
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 238102da9a..9fe653cb79 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -786,13 +786,15 @@ def table_performance_trending_dashboard(table, input_data): else classification for idx in range(first_idx, len(classification_lst)): if classification_lst[idx] == tmp_classification: - index = idx - break + if rel_change_lst[idx]: + index = idx + break for idx in range(index+1, len(classification_lst)): if classification_lst[idx] == tmp_classification: - if (abs(rel_change_lst[idx]) > - abs(rel_change_lst[index])): - index = idx + if rel_change_lst[idx]: + if (abs(rel_change_lst[idx]) > + abs(rel_change_lst[index])): + index = idx trend = round(float(median_lst[-1]) / 1000000, 2) \ if not isnan(median_lst[-1]) else '-' |