fix bandwidth calculation for single-service groups
This commit is contained in:
parent
093ad6cd0d
commit
dc848a7006
@ -254,7 +254,10 @@ class ServiceHandler(SdrSourceEventClient):
|
||||
groups.append([f for f in freqs if previous < f["frequency"]])
|
||||
|
||||
def get_total_bandwidth(group):
|
||||
if len(group) > 1:
|
||||
return bandwidth + len(group) * self.get_bandwidth(group)
|
||||
else:
|
||||
return bandwidth
|
||||
|
||||
total_bandwidth = sum([get_total_bandwidth(group) for group in groups])
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user