Commit bac6258d authored by Matt Traudt's avatar Matt Traudt
Browse files

Make sure bw in the v3bw file is at least 1

parent 4a7d51f2
......@@ -12,7 +12,7 @@ import time
class V3BWLine:
def __init__(self, fp, bw, nick, rtts, last_time):
self.fp = fp = bw = max(round(bw), 1)
self.nick = nick
# convert to ms
rtts = [round(r * 1000) for r in rtts]
......@@ -21,8 +21,8 @@ class V3BWLine:
def __str__(self):
frmt = 'node_id={fp} bw={sp} nick={n} rtt={rtt} time={t}'
return frmt.format(fp=self.fp, sp=round(, n=self.nick,
rtt=self.rtt, t=self.time)
return frmt.format(fp=self.fp,, n=self.nick, rtt=self.rtt,
def result_data_to_v3bw_line(data, fingerprint):
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