mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +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 */
|
/* if we used this peer recently, give someone else a turn */
|
||||||
minWait = 60;
|
minWait = 60; /* one minute */
|
||||||
maxWait = minWait * 5;
|
maxWait = (60 * 10); /* ten minutes */
|
||||||
wait = atom->numFails * 10;
|
wait = atom->numFails * 10;
|
||||||
if( wait < minWait ) wait = minWait;
|
if( wait < minWait ) wait = minWait;
|
||||||
if( wait > maxWait ) wait = maxWait;
|
if( wait > maxWait ) wait = maxWait;
|
||||||
|
|
Loading…
Reference in a new issue