mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
(trunk libT) (1) on startup, stagger new torrents' scrapes. (2) reduce the minimum number of block requests to peers.
This commit is contained in:
parent
ae966e0725
commit
38fdcd5835
2 changed files with 2 additions and 2 deletions
|
@ -410,7 +410,7 @@ tierNew( tr_torrent * tor )
|
|||
t->scrapeIntervalSec = DEFAULT_SCRAPE_INTERVAL_SEC;
|
||||
t->announceIntervalSec = DEFAULT_ANNOUNCE_INTERVAL_SEC;
|
||||
t->announceMinIntervalSec = DEFAULT_ANNOUNCE_MIN_INTERVAL_SEC;
|
||||
t->scrapeAt = now;
|
||||
t->scrapeAt = now + tr_cryptoWeakRandInt( 60*10 );
|
||||
t->tor = tor;
|
||||
|
||||
return t;
|
||||
|
|
|
@ -1705,7 +1705,7 @@ updateDesiredRequestCount( tr_peermsgs * msgs, uint64_t now )
|
|||
int irate;
|
||||
int estimatedBlocksInPeriod;
|
||||
double rate;
|
||||
const int floor = 2;
|
||||
const int floor = 8;
|
||||
const int seconds = REQUEST_BUF_SECS;
|
||||
|
||||
/* Get the rate limit we should use.
|
||||
|
|
Loading…
Reference in a new issue