Skip to content

Commit

Permalink
json: Include rdma-bandwidth measurement result
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuba314 authored and olichtne committed Oct 31, 2023
1 parent 9df6c64 commit 65cc336
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ def _transform_result(self, result: BaseResult) -> Optional[dict]:
elif result.measurement_type == "linuxperf":
# linuxperf measurement just generates files
measurement_data = {}
elif result.measurement_type == "rdma-bandwidth":
measurement_data = {
"bandwidth": result.data["bandwidth"].average,
}
else:
logging.warning(f"unhandled measurement result type: {result.measurement_type}")
measurement_data = None
Expand Down

0 comments on commit 65cc336

Please sign in to comment.