X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Fgenerator_tables.py;h=5efe66777b74d72df2c4cfcb96246495da60f63e;hp=ffb4f1a40d6007a3c0f6f0aec108ec1e93276387;hb=83e5550cfe67ba193c3ae9052258c111dbe342e4;hpb=d20e76a2bbed8ba639666947710db71339c35833 diff --git a/resources/tools/presentation/generator_tables.py b/resources/tools/presentation/generator_tables.py index ffb4f1a40d..5efe66777b 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[-3] 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[-3] is not None): tbl_lst.append(item) # Sort the table according to the relative change