new functions
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user