Get the min, or 0.0 if there aren't enough samples yet.
(self)
| 158 | self.samples.append(sample) |
| 159 | |
| 160 | def get(self) -> float: |
| 161 | """Get the min, or 0.0 if there aren't enough samples yet.""" |
| 162 | if len(self.samples) >= _MIN_RTT_SAMPLES: |
| 163 | return min(self.samples) |
| 164 | return 0.0 |
| 165 | |
| 166 | def reset(self) -> None: |
| 167 | self.samples.clear() |
no outgoing calls
no test coverage detected