mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 20:22:31 +00:00
Make comments and values match
+6
-4
@@ -29,6 +29,7 @@ Let's try to balance the requests to not fire up them at the same time:
|
||||
- send scrape requests regularly, check for update in every `5 minutes` and distinguish between 2 groups:
|
||||
- transferring (uploading/downloading) torrents : update it in every `10 minutes`
|
||||
- non-transferring torrents: update it in every `12 hours`
|
||||
- stopped torrents: update it in every `24 hours`
|
||||
|
||||
### Config
|
||||
|
||||
@@ -38,15 +39,16 @@ All you have to do is to copy-paste the following config into your `rTorrent` co
|
||||
### Tracker Announce ###
|
||||
|
||||
# Set scrape intervals for active (~10 mins), idle items (~12 hours) and stopped items (~24 hours)
|
||||
method.insert = cfg.scrape_interval.active, value, 300
|
||||
method.insert = cfg.scrape_interval.idle, value, 43180
|
||||
method.insert = cfg.scrape_interval.stopped, value, 86380
|
||||
method.insert = cfg.scrape_interval.active, value, 600
|
||||
method.insert = cfg.scrape_interval.idle, value, 43200
|
||||
method.insert = cfg.scrape_interval.stopped, value, 86400
|
||||
|
||||
# Regularly update scrape information for all torrents (even stopped ones), it won't affect the operation of rtorrent, but nice to have these values updated.
|
||||
# This info is only updated when rtorrent starts or a torrent is added by default.
|
||||
# Try to balance calls to not fire them up at the same time (since multiscraping isn't implemented in libtorrent). Check for update every 5 minutes and distinguish between 2 groups:
|
||||
# - transferring (uploading and/or downloading) torrents: update in every 10 minutes
|
||||
# - non-transferring torrents: update in every 12 hours
|
||||
# - stopped torrents: update it in every `24 hours`
|
||||
|
||||
# helper method: sets current time in a custom field (tm_last_scrape) and saves session
|
||||
method.insert = d.last_scrape.set, simple|private, "d.custom.set=tm_last_scrape,$cat=$system.time=; d.save_resume="
|
||||
@@ -67,7 +69,7 @@ method.set_key = event.download.inserted_new, ~last_scrape_i, "d.last_scrape.set
|
||||
method.insert = d.last_scrape.update_active, simple|private, "branch={\"or={d.up.rate=,d.down.rate=}\",d.last_scrape.check=$cfg.scrape_interval.active=,d.last_scrape.check=$cfg.scrape_interval.idle=}"
|
||||
method.insert = d.last_scrape.update, simple|private, "branch={d.is_open=,d.last_scrape.update_active=,d.last_scrape.check=$cfg.scrape_interval.stopped=}"
|
||||
|
||||
# check for update every 2 minutes (120 sec) and
|
||||
# check for update every 5 minutes (300 sec) and
|
||||
schedule2 = last_scrape_t, 300, 300, "d.multicall2=default,\"d.last_scrape.update=\""
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user