new functions

This commit is contained in:
Mateusz Gruszczyński
2026-05-05 08:08:48 +02:00
parent fa0d2f13fe
commit 0b580f590e
3 changed files with 41 additions and 3 deletions

View File

@@ -44,8 +44,8 @@ def register_socketio_handlers(socketio):
heartbeat["error"] = str(exc)
socketio.emit("rtorrent_error", {"profile_id": profile["id"], "error": str(exc)})
if tick % max(1, int(15 * 60 / POLL_INTERVAL)) == 0:
# Note: Torrent statistics are refreshed in the background every 15 minutes after startup delay.
torrent_stats.maybe_refresh(profile, force=False)
# Note: Queue heavier torrent statistics outside the fast system_stats poller.
torrent_stats.queue_refresh(socketio, profile, force=False)
if tick % max(1, int(30 / POLL_INTERVAL)) == 0:
try:
result = smart_queue.check(profile, force=False)