Skip to content

Commit

Permalink
Update key
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed Apr 2, 2024
1 parent a15ec6b commit 5e6b4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ratemon/scripts/tput_rxmits.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def main(args):
print(f"Error: 'end' key not found in JSON file: {args.in_file}")
return 1

bps = res["end"]["bits_per_second"]
rxmits = res["end"]["retransmits"]
bps = res["end"]["sum_sent"]["bits_per_second"]
rxmits = res["end"]["sum_sent"]["retransmits"]
msg = f"Throughput: {bps / 1e9:.2f} Gbps\nRetransmits: {rxmits}"
print(msg)
with open(args.out_file, "w", encoding="utf-8") as fil:
Expand Down

0 comments on commit 5e6b4a9

Please sign in to comment.