Fixed formatting (again).
This commit is contained in:
@@ -119,9 +119,7 @@ class OwncastSentry(Plugin):
|
|||||||
"""Run stream state updates at the top of each wall-clock minute."""
|
"""Run stream state updates at the top of each wall-clock minute."""
|
||||||
while True:
|
while True:
|
||||||
current_time = datetime.now(UTC)
|
current_time = datetime.now(UTC)
|
||||||
delay = 60 - current_time.second - (
|
delay = 60 - current_time.second - (current_time.microsecond / 1_000_000)
|
||||||
current_time.microsecond / 1_000_000
|
|
||||||
)
|
|
||||||
await asyncio.sleep(delay)
|
await asyncio.sleep(delay)
|
||||||
await self._update_all_stream_states()
|
await self._update_all_stream_states()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user