aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2022-10-26 16:41:26 +0200
committerVratko Polak <vrpolak@cisco.com>2022-10-26 16:41:26 +0200
commite10da8fe238ad069e6793f263d92521a65e928f8 (patch)
treee5eda0bfc88cdc4498922c5b2c1430b2d5dd9615 /resources
parentcc2bee6c7b44e66f1f17b46a5f4e75779242dffe (diff)
fix(report): list more decimals in soak comparisons
Recent results frequently show just one digit. Change-Id: Ieefb7d06789af6934cb76d7abd959df50ab6fa3c Signed-off-by: Vratko Polak <vrpolak@cisco.com>
Diffstat (limited to 'resources')
-rw-r--r--resources/tools/presentation/generator_tables.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py
index b09b820419..d76c4ba2b8 100644
--- a/resources/tools/presentation/generator_tables.py
+++ b/resources/tools/presentation/generator_tables.py
@@ -915,8 +915,8 @@ def table_soak_vs_ndr(table, input_data):
else:
data_c_mean = mean(data_c)
data_c_stdev = stdev(data_c)
- item.append(round(data_c_mean / 1e6, 1))
- item.append(round(data_c_stdev / 1e6, 1))
+ item.append(round(data_c_mean / 1e6, 2))
+ item.append(round(data_c_stdev / 1e6, 2))
else:
data_c_mean = None
data_c_stdev = None
@@ -925,11 +925,11 @@ def table_soak_vs_ndr(table, input_data):
delta, d_stdev = relative_change_stdev(
data_r_mean, data_c_mean, data_r_stdev, data_c_stdev)
try:
- item.append(round(delta))
+ item.append(round(delta, 2))
except ValueError:
item.append(delta)
try:
- item.append(round(d_stdev))
+ item.append(round(d_stdev, 2))
except ValueError:
item.append(d_stdev)
tbl_lst.append(item)