Commit 50b9f49c authored by juga's avatar juga
Browse files

fix: Avoid zero division calculating bridges' weight

parent e3054546
......@@ -270,7 +270,7 @@ for v in sorted(bridge_versions.keys()):
else:
spaces = " "
w_percent = (bridge_weights[v] / bridge_total_w) * 100
w_percent = (bridge_weights[v] / bridge_total_w or 1) * 100
print("%s%d: %s%s[%.2f %%] %s" % \
(spaces, bridge_versions[v], v, (18 - len(v.__str__())) * " ",
......
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