diff options
author | 2022-10-26 16:41:26 +0200 | |
---|---|---|
committer | 2022-10-27 04:29:06 +0000 | |
commit | e951b3a06e054456fd962e72e2cf107ed82f9cb6 (patch) | |
tree | 80ff30151f8d9432300d5e166a1255c098002fda /resources/tools | |
parent | 73dfec29cd9269a37e1b3e976de054fda1c2ef6b (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>
(cherry picked from commit e10da8fe238ad069e6793f263d92521a65e928f8)
Diffstat (limited to 'resources/tools')
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 8 |
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) |