Ajout d'un commentaire concernant time.monotonic()

This commit is contained in:
2026-03-24 12:40:30 +01:00
parent e50b24dfec
commit aa309b0763

View File

@@ -64,6 +64,8 @@ class QueueManager:
self.on_update(f"position:{join.get('position')}:{join.get('queueSize')}") self.on_update(f"position:{join.get('position')}:{join.get('queueSize')}")
""" time.monotonic() est insensible aux changements d'heure système (heure d'été, NTP, etc.),
ce qui le rend plus fiable pour mesurer des intervalles."""
self._last_refresh = time.monotonic() # ← démarre le compteur après le join self._last_refresh = time.monotonic() # ← démarre le compteur après le join
while self._running: while self._running: