0
1
mirror of https://github.com/radio95-rnt/RadioPlayer.git synced 2026-02-27 06:03:52 +01:00

change time

This commit is contained in:
2025-08-14 21:17:22 +02:00
parent 57d7af09bb
commit f1457fa734

View File

@@ -110,7 +110,7 @@ def state_writer_thread():
"""Thread that writes state every minute""" """Thread that writes state every minute"""
while True: while True:
try: try:
time.sleep(60) # Update every minute instead of every second time.sleep(0.5) # Update every minute instead of every second
with state_lock: with state_lock:
if current_state["current_file"] and current_state["start_time"]: if current_state["current_file"] and current_state["start_time"]:
elapsed = time.time() - current_state["start_time"] elapsed = time.time() - current_state["start_time"]