Get the calculated average, or None if no samples yet and the min.
(self)
| 465 | self._moving_min.add_sample(sample) |
| 466 | |
| 467 | def get(self) -> tuple[Optional[float], float]: |
| 468 | """Get the calculated average, or None if no samples yet and the min.""" |
| 469 | with self._lock: |
| 470 | return self._moving_average.get(), self._moving_min.get() |
| 471 | |
| 472 | def reset(self) -> None: |
| 473 | """Reset the average RTT.""" |
no outgoing calls
no test coverage detected