1
0
Fork 0
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:
Charles Kerr 2010-01-25 02:19:20 +00:00
parent ae966e0725
commit 38fdcd5835
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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.