Commit aa1dd5ad authored by juga's avatar juga Committed by Matt Traudt
Browse files

Round earliest/latest bw unix timestamp

parent 8051e29e
......@@ -168,11 +168,11 @@ class V3BwHeader(object):
@staticmethod
def lastest_bandwidth_from_results(results):
return max([r.time for fp in results for r in results[fp]])
return round(max([r.time for fp in results for r in results[fp]]))
@staticmethod
def earliest_bandwidth_from_results(results):
return min([r.time for fp in results for r in results[fp]])
return round(min([r.time for fp in results for r in results[fp]]))
@classmethod
def from_results(cls, conf, results):
......
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