Report: Remove decimals from delta and stdev in tables 72/26072/1
authorTibor Frank <tifrank@cisco.com>
Mon, 23 Mar 2020 10:33:51 +0000 (11:33 +0100)
committerTibor Frank <tifrank@cisco.com>
Mon, 23 Mar 2020 10:33:51 +0000 (11:33 +0100)
Change-Id: Ib8aa70b4bd2519f077bbb76da1f41a74215a9f2e
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/generator_tables.py

index e76cc62..bdd6e22 100644 (file)
@@ -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

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.