Scale readahead pieces a bit

This commit is contained in:
Matt Joiner 2015-02-26 16:10:15 +11:00
parent c75dbccea3
commit 9ffb9b0b88
1 changed files with 1 additions and 1 deletions

View File

@ -274,7 +274,7 @@ func (cl *Client) readRaisePiecePriorities(t *torrent, off, _len int64) {
return
}
cl.raisePiecePriority(t, index, piecePriorityNext)
for i := 0; i < 3; i++ {
for i := 0; i < t.numConnsUnchoked()/2; i++ {
index++
if index >= t.numPieces() {
break