From 52467f3aeaf24f8d981e97dee3e92075b2742304 Mon Sep 17 00:00:00 2001 From: stickz Date: Wed, 10 May 2023 22:17:19 -0400 Subject: [PATCH] rTorrent: improve session saving This commit improves session saving support for rTorrent to prevent unnecessary loss of torrent files. It also increases the session saving interval from 20 minutes to 1 hour to reduce disk i/o usage with thousands of torrents. Session saving is a very intensive task that can take minutes. Torrents fail to save into session by default when added and can be lost if a crash occurs between saving intervals. --- spk/rutorrent/src/rtorrent.rc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spk/rutorrent/src/rtorrent.rc b/spk/rutorrent/src/rtorrent.rc index 2d5beb90dc5..470418dd28c 100755 --- a/spk/rutorrent/src/rtorrent.rc +++ b/spk/rutorrent/src/rtorrent.rc @@ -13,3 +13,5 @@ dht.mode.set = auto dht.port.set = 6881 protocol.pex.set= yes port_range = 6881-6999 +schedule2 = session_save, 1200, 3600, ((session.save)) +method.set_key = event.download.inserted, 2_save_session, ((d.save_full_session))