(self, record: LatencyRecord)
| 310 | # ------------------------------ Charting ------------------------------ # |
| 311 | |
| 312 | def add_new_record(self, record: LatencyRecord) -> None: |
| 313 | # Scroll window: discard oldest, append newest |
| 314 | self.data = self.data[1:] + [record] |
| 315 | self.sample_number += 1 |
| 316 | |
| 317 | @staticmethod |
| 318 | def _bg_color(token: int, palette: str) -> str: |