From 967cdb11f34dce8fe427e7db7130afcd8464d7b3 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Mon, 23 Mar 2020 11:33:51 +0100 Subject: Report: Remove decimals from delta and stdev in tables Change-Id: Ib8aa70b4bd2519f077bbb76da1f41a74215a9f2e Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_tables.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index e76cc62f5e..bdd6e22cf7 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -822,8 +822,8 @@ def table_perf_comparison(table, input_data): delta, d_stdev = relative_change_stdev( data_r_mean, data_c_mean, data_r_stdev, data_c_stdev ) - item.append(round(delta, 2)) - item.append(round(d_stdev, 2)) + item.append(round(delta)) + item.append(round(d_stdev)) if (len(item) == len(header)) and (item[-4] != u"Not tested"): tbl_lst.append(item) @@ -1115,8 +1115,8 @@ def table_perf_comparison_nic(table, input_data): delta, d_stdev = relative_change_stdev( data_r_mean, data_c_mean, data_r_stdev, data_c_stdev ) - item.append(round(delta, 2)) - item.append(round(d_stdev, 2)) + item.append(round(delta)) + item.append(round(d_stdev)) if (len(item) == len(header)) and (item[-4] != u"Not tested"): tbl_lst.append(item) @@ -1253,8 +1253,8 @@ def table_nics_comparison(table, input_data): delta, d_stdev = relative_change_stdev( data_r_mean, data_c_mean, data_r_stdev, data_c_stdev ) - item.append(round(delta, 2)) - item.append(round(d_stdev, 2)) + item.append(round(delta)) + item.append(round(d_stdev)) tbl_lst.append(item) # Sort the table according to the relative change @@ -1387,8 +1387,8 @@ def table_soak_vs_ndr(table, input_data): if data_r_mean and data_c_mean: delta, d_stdev = relative_change_stdev( data_r_mean, data_c_mean, data_r_stdev, data_c_stdev) - item.append(round(delta, 2)) - item.append(round(d_stdev, 2)) + item.append(round(delta)) + item.append(round(d_stdev)) tbl_lst.append(item) # Sort the table according to the relative change -- cgit 1.2.3-korg