Skip to content

Commit

Permalink
Support a single CCA
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed Feb 14, 2024
1 parent 272827e commit 51dffda
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions unfair/model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,17 @@ def __init__(self, sim):
) = toks
ccas = tuple(ccas.split(","))
flows = tuple(int(f) for f in flows.split(","))
assert ccas, "No CCAs!"
assert flows, "No flows!"
self.cca_1_name = ccas[0]
self.cca_2_name = ccas[1]
self.cca_back_name = ""
cca_1_flws = flows[0]
cca_2_flws = flows[1]
if len(ccas) == 2:
self.cca_2_name = ccas[1]
cca_2_flws = flows[1]
else:
self.cca_2_name = ccas[0]
cca_2_flws = 0
self.cca_back_name = ""
cca_back_flws = 0
bitrate_Mbps_1 = "0bitrate"
bitrate_Mbps_2 = "0bitrate"
Expand Down

0 comments on commit 51dffda

Please sign in to comment.