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