X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=36c6e645579a29c918fd6d2559fee465f4c27380;hb=259620ea6ca1c5864d4864f0f04d260e89ecb72a;hp=734477088f8874c89ea943a573e9750e75e27efe;hpb=ff3201774cf904bad6c64adf11f1fae92d5f8588;p=csit.git diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index 734477088f..36c6e64557 100644 --- a/resources/tools/presentation/generator_tables.py +++ b/resources/tools/presentation/generator_tables.py @@ -409,11 +409,13 @@ def table_performance_comparison(table, input_data): item.append(round(stdev(data_t) / 1000000, 2)) else: item.extend([None, None]) - if item[-4] is not None and item[-2] is not None and item[-4] != 0: + if "dot1q" in tbl_dict[tst_name]["name"]: + item.append("Changed methodology") + elif item[-4] is not None and item[-2] is not None and item[-4] != 0: item.append(int(relative_change(float(item[-4]), float(item[-2])))) else: - item.append(None) - if len(item) == len(header): + item.append("n/a") + if (len(item) == len(header)) and (item[-5] is not None): tbl_lst.append(item) # Sort the table according to the relative change @@ -657,11 +659,13 @@ def table_performance_comparison_nic(table, input_data): item.append(round(stdev(data_t) / 1000000, 2)) else: item.extend([None, None]) - if item[-4] is not None and item[-2] is not None and item[-4] != 0: + if "dot1q" in tbl_dict[tst_name]["name"]: + item.append("Changed methodology") + elif item[-4] is not None and item[-2] is not None and item[-4] != 0: item.append(int(relative_change(float(item[-4]), float(item[-2])))) else: - item.append(None) - if len(item) == len(header): + item.append("n/a") + if (len(item) == len(header)) and (item[-5] is not None): tbl_lst.append(item) # Sort the table according to the relative change