1
0
Fork 0
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:
Charles Kerr 2007-10-16 02:37:34 +00:00
parent 0b04554772
commit ec30180d76

View file

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