From 1a70efc7f2df81609486a8a6c1976761bd490ecb Mon Sep 17 00:00:00 2001 From: Christopher Canel Date: Mon, 19 Feb 2024 22:16:00 +0000 Subject: [PATCH] Fix --- unfair/scripts/eval.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unfair/scripts/eval.py b/unfair/scripts/eval.py index 643a521..0709082 100755 --- a/unfair/scripts/eval.py +++ b/unfair/scripts/eval.py @@ -639,7 +639,7 @@ def calculate_maxmin_ratios(params, flw_to_pkts, flw_to_sender, sender_to_flws): ), f"Error: Expected 3 bottleneck situations, but found: {len(bneck_situations)}" # Determine the maxmin fair rate for each flow in each bottleneck situation - bneck_to_sender_to_maxminbps = {} + bneck_to_sender_to_maxminbps = collections.defaultdict(dict) for start_s, end_s, sender_to_ratebps in bneck_situations: bneck = (start_s, end_s) # Calculate the maxmin fair rate at the sender bottlenecks.