NFVBENCH-193: Correct a critical bug introduced in commit NFVBENCH-192 03/71403/1 4.4.0
authorPierrick Louin <pierrick.louin@orange.com>
Mon, 16 Nov 2020 12:49:10 +0000 (13:49 +0100)
committerPierrick Louin <pierrick.louin@orange.com>
Mon, 16 Nov 2020 12:49:10 +0000 (13:49 +0100)
Signed-off-by: Pierrick Louin <pierrick.louin@orange.com>
Change-Id: Ia22008181fa7af63af68baed7e793ca7dab25a11

nfvbench/summarizer.py

index 7e2d129..0759933 100644 (file)
@@ -263,8 +263,9 @@ class NFVBenchSummarizer(Summarizer):
         # add percentiles headers if hdrh enabled
         if not self.config.disable_hdrh:
             for percentile in self.config.lat_percentiles:
-                self.ndr_pdr_header.append(str(percentile) + ' %ile lat.', Formatter.standard)
-                self.single_run_header.append(str(percentile) + ' %ile lat.', Formatter.standard)
+                # 'append' expects a single parameter => double parentheses
+                self.ndr_pdr_header.append((str(percentile) + ' %ile lat.', Formatter.standard))
+                self.single_run_header.append((str(percentile) + ' %ile lat.', Formatter.standard))
         # if sender is available initialize record
         if self.sender:
             self.__record_init()
@@ -566,7 +567,8 @@ class NFVBenchSummarizer(Summarizer):
                         str(percentile) + ' %ile lat.'
 
             for key in lat_map:
-                header.append(lat_map[key], Formatter.standard)
+                # 'append' expects a single parameter => double parentheses
+                header.append((lat_map[key], Formatter.standard))
 
         table = Table(header)
         for chain in sorted(list(chains.keys()), key=str):