Commit bd57e473 authored by juga's avatar juga
Browse files

fix: scaling: Return mean if no bw >= mean

parent a82c2618
......@@ -27,7 +27,7 @@ def bw_filt(bw_measurements):
bws_gte_mean = list(filter(lambda bw: bw >= mu, bw_measurements))
if bws_gte_mean:
return round(mean(bws_gte_mean))
return 1
return mu
def network_means_by_relay_type(bw_lines, router_statuses_d):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment