aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_CPTA.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-04-25 17:21:50 +0200
committerTibor Frank <tifrank@cisco.com>2018-04-25 17:21:50 +0200
commit0f662ea0defa9b30fa7a7d9256857fce92d20a6e (patch)
tree39084c978aa84c4c764c02b600981fc555b227c2 /resources/tools/presentation/generator_CPTA.py
parent6e1a15acc7bd3685d71f9d34238181c681dcd4c0 (diff)
CSIT-1041: Trending dashboard
Change-Id: Ib1307d542ddef1fb6c4ddc0f6204c549870a3c25 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_CPTA.py')
-rw-r--r--resources/tools/presentation/generator_CPTA.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py
index c2f8890286..51787e43c5 100644
--- a/resources/tools/presentation/generator_CPTA.py
+++ b/resources/tools/presentation/generator_CPTA.py
@@ -165,7 +165,7 @@ def _evaluate_results(in_data, trimmed_data, window=10):
if len(in_data) > 2:
win_size = in_data.size if in_data.size < window else window
results = [0.66, ]
- median = in_data.rolling(window=win_size, min_periods=2).median()
+ median = trimmed_data.rolling(window=win_size, min_periods=2).median()
stdev_t = trimmed_data.rolling(window=win_size, min_periods=2).std()
first = True