aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_CPTA.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-04-17 13:43:04 +0200
committerTibor Frank <tifrank@cisco.com>2018-04-17 13:43:04 +0200
commit2387340f7050112311cd231f7d30d06731da4836 (patch)
tree669daccb94606036bd6e20f72dcbd4c6e46f2258 /resources/tools/presentation/generator_CPTA.py
parente3554783146e2c4f2b6b5084c8afc707787d6922 (diff)
Report, trending
Change-Id: Ib71be16f2ddf172c381b43d289a9a0000dad10b6 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.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/resources/tools/presentation/generator_CPTA.py b/resources/tools/presentation/generator_CPTA.py
index 066bfbddc8..c3784e94ef 100644
--- a/resources/tools/presentation/generator_CPTA.py
+++ b/resources/tools/presentation/generator_CPTA.py
@@ -389,7 +389,7 @@ def _generate_all_charts(spec, input_data):
builds_lst.append(str(build["build"]))
# Get "build ID": "date" dict:
- build_info = dict()
+ build_info = OrderedDict()
for build in builds_lst:
try:
build_info[build] = (
@@ -398,6 +398,9 @@ def _generate_all_charts(spec, input_data):
)
except KeyError:
build_info[build] = ("", "")
+ logging.info("{}: {}, {}".format(build,
+ build_info[build][0],
+ build_info[build][1]))
# Create the header:
csv_table = list()
@@ -444,7 +447,7 @@ def _generate_all_charts(spec, input_data):
for period in chart["periods"]:
# Generate traces:
traces = list()
- win_size = 10 if period == 1 else 5 if period < 20 else 3
+ win_size = 14 if period == 1 else 5 if period < 20 else 3
idx = 0
for test_name, test_data in chart_data.items():
if not test_data: