Skip to content

Commit

Permalink
BaseFlowMeasurement: move flow description into the FlowMeasurementRe…
Browse files Browse the repository at this point in the history
…sults class

This is a better place for the generic flow description generation, and
is more consistent with the cpu measurement and cpu measurement results
as well.

Signed-off-by: Ondrej Lichtner <[email protected]>
  • Loading branch information
olichtne committed Dec 7, 2023
1 parent 059b891 commit eb32f2e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion lnst/RecipeCommon/Perf/Measurements/BaseFlowMeasurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ def _report_flow_results(cls, recipe, flow_results):
receiver_cpu = flow_results.receiver_cpu_stats

desc = []
desc.append(str(flow_results.flow))
desc.append(flow_results.describe())

recipe_result = ResultType.PASS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ def describe(self):
receiver = self.receiver_results
receiver_cpu = self.receiver_cpu_stats
desc = []
desc.append(str(self.flow))
desc.append(
"Generator measured throughput: {tput:.2f} +-{deviation:.2f}({percentage:.2f}%) {unit} per second.".format(
tput=generator.average,
Expand Down

0 comments on commit eb32f2e

Please sign in to comment.