mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
tweak the weights that decide to reconnect to crappy peers less often.
This commit is contained in:
parent
0b04554772
commit
ec30180d76
1 changed files with 2 additions and 2 deletions
|
@ -1609,8 +1609,8 @@ getPeerCandidates( Torrent * t, int * setmeSize )
|
|||
}
|
||||
|
||||
/* if we used this peer recently, give someone else a turn */
|
||||
minWait = 60;
|
||||
maxWait = minWait * 5;
|
||||
minWait = 60; /* one minute */
|
||||
maxWait = (60 * 10); /* ten minutes */
|
||||
wait = atom->numFails * 10;
|
||||
if( wait < minWait ) wait = minWait;
|
||||
if( wait > maxWait ) wait = maxWait;
|
||||
|
|
Loading…
Reference in a new issue