mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix: sonarcloud (#4453)
This commit is contained in:
@@ -45,10 +45,7 @@ using namespace std::literals;
|
||||
|
||||
/* unless the tracker says otherwise, rescrape this frequently */
|
||||
static auto constexpr DefaultScrapeIntervalSec = int{ 60 * 30 };
|
||||
/* unless the tracker says otherwise, this is the announce interval */
|
||||
static auto constexpr DefaultAnnounceIntervalSec = int{ 60 * 10 };
|
||||
/* unless the tracker says otherwise, this is the announce min_interval */
|
||||
static auto constexpr DefaultAnnounceMinIntervalSec = int{ 60 * 2 };
|
||||
|
||||
/* the value of the 'numwant' argument passed in tracker requests. */
|
||||
static auto constexpr Numwant = int{ 80 };
|
||||
|
||||
@@ -528,6 +525,12 @@ struct tr_tier
|
||||
bool isScraping = false;
|
||||
|
||||
private:
|
||||
// unless the tracker says otherwise, this is the announce interval
|
||||
static auto constexpr DefaultAnnounceIntervalSec = int{ 60 * 10 };
|
||||
|
||||
// unless the tracker says otherwise, this is the announce min_interval
|
||||
static auto constexpr DefaultAnnounceMinIntervalSec = int{ 60 * 2 };
|
||||
|
||||
[[nodiscard]] static time_t getNextScrapeTime(tr_session const* session, tr_tier const* tier, int interval)
|
||||
{
|
||||
// Maybe don't scrape paused torrents
|
||||
|
||||
Reference in New Issue
Block a user