diff options
author | Tibor Frank <tifrank@cisco.com> | 2020-03-23 11:33:51 +0100 |
---|---|---|
committer | Tibor Frank <tifrank@cisco.com> | 2020-03-23 11:33:51 +0100 |
commit | 967cdb11f34dce8fe427e7db7130afcd8464d7b3 (patch) | |
tree | 0ff984b8cd871541066755491a9a1134761dbf94 /resources/tools/presentation/generator_tables.py | |
parent | 2e6f203c383b22b0d2fb72772aa38b8aecbc2105 (diff) |
Report: Remove decimals from delta and stdev in tables
Change-Id: Ib8aa70b4bd2519f077bbb76da1f41a74215a9f2e
Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_tables.py')
-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 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 |