GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 88eb7ef5 authored by juga  's avatar juga

chg: v3bwfile: Stop making mean minimum 1

parent c030731e
...@@ -902,7 +902,8 @@ class V3BWLine(object): ...@@ -902,7 +902,8 @@ class V3BWLine(object):
if r.relay_observed_bandwidth is not None: if r.relay_observed_bandwidth is not None:
desc_bw_obs_ls.append(r.relay_observed_bandwidth) desc_bw_obs_ls.append(r.relay_observed_bandwidth)
if desc_bw_obs_ls: if desc_bw_obs_ls:
return max(round(mean(desc_bw_obs_ls)), 1) return round(mean(desc_bw_obs_ls))
log.warning("Descriptor observed bandwidth is None.")
return None return None
@staticmethod @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