You've already forked RadioPlayer
mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-02-27 14:13:55 +01:00
change time
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user