Commit 619c2f46 authored by juga  's avatar juga
Browse files

v3bwfile: do not round twice in torflow's scale method

parent a9222fce
......@@ -868,8 +868,8 @@ class V3BWFile(object):
# Cap maximum bw
if cap is not None:
bw_new = min(hlimit, bw_new)
# remove decimals and avoid 0
l.bw = max(round(bw_new), 1)
# avoid 0
l.bw = max(bw_new, 1)
return sorted(bw_lines_tf, key=lambda x: x.bw, reverse=reverse)
@staticmethod
......
Markdown is supported
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