Commit 54ccf2ce authored by juga's avatar juga
Browse files

Add args to method to filter results

that are away from each other a min num of secs and have at least
x results
parent 5ff83f4c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -254,7 +254,8 @@ class V3BWLine(object):
        return self.bw_strv110

    @classmethod
    def from_results(cls, results):
    def from_results(cls, results, secs_recent=None, secs_away=None,
                     min_num=0):
        """Convert sbws results to relays' Bandwidth Lines

        ``bs`` stands for Bytes/seconds