1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-27 01:57:52 +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 */ /* 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;