Skip to content

Commit 10cf428

Browse files
chroschros
chros
authored and
chros
committed
Refactor 1 method with Regularly send scrape request to trackers (See #2)
1 parent 1207c55 commit 10cf428

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/pyrocore/data/config/rtorrent-0.8.6.rc

+1-4
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,7 @@ method.insert = d.last_scrape.send_set, simple, "d.tracker.send_scrape=0;d.last_
115115
method.insert = d.last_scrape.check_elapsed, simple|private, "branch={(elapsed.greater,$d.custom=tm_last_scrape,$argument.0=),d.last_scrape.send_set=}"
116116
# helper method: checks for non-existing/empty custom field to be able to test its validity later
117117
method.insert = d.last_scrape.check, simple|private, "branch={d.custom=tm_last_scrape,d.last_scrape.check_elapsed=$argument.0=,d.last_scrape.send_set=}"
118-
# helper method: decides whether a torrent transferring data or not
119-
method.insert = d.transferring.check, simple|private, "or={d.up.rate=,d.down.rate=}"
120118
# sets custom field (tm_last_scrape) to current time only for torrents just has been added (skips setting time on purpose when rtorrent started)
121119
method.set_key = event.download.inserted_new, last_scrape_i, "d.last_scrape.set="
122120
# check for update every 5 minutes (300 sec) and update scrape info for transferring torrents in every 10 minutes (600-20=580 sec) and for non-transferring ones in every 12 hours (43200-20=43180 sec)
123-
schedule2 = last_scrape_t, 300, 300, "d.multicall2=main,\"branch=$d.transferring.check=,d.last_scrape.check=580,d.last_scrape.check=43180\""
124-
121+
schedule2 = last_scrape_t, 300, 300, "d.multicall2=main,\"branch=\\\"or={d.up.rate=,d.down.rate=}\\\",d.last_scrape.check=580,d.last_scrape.check=43180\""

0 commit comments

Comments
 (0)