diff options
author | 2020-03-23 11:33:51 +0100 | |
---|---|---|
committer | 2020-03-23 11:20:36 +0000 | |
commit | 773cba14d680358b47727742e665d0b360384bd3 (patch) | |
tree | a6b955e583dcb147e030bb23ad36e3dd7b71385b /resources | |
parent | 6b5baa82408e91df1ce050e51232138490115fab (diff) |
Report: Remove decimals from delta and stdev in tables
Change-Id: Ib8aa70b4bd2519f077bbb76da1f41a74215a9f2e
Signed-off-by: Tibor Frank <tifrank@cisco.com>
(cherry picked from commit 967cdb11f34dce8fe427e7db7130afcd8464d7b3)
Diffstat (limited to 'resources')
-rw-r--r-- | resources/tools/presentation/generator_tables.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 457ebbeec6..f415a8f338 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 |