#3911: tr_peerMgrTorrentAvailability() doesn't sample across the entire torrent' -- fixed.

This commit is contained in:
Jordan Lee 2011-01-18 22:21:09 +00:00
parent 246bd4a84b
commit 7f01f0c3ee
1 changed files with 1 additions and 1 deletions

View File

@ -2164,7 +2164,7 @@ tr_peerMgrTorrentAvailability( const tr_torrent * tor,
else if( peerCount ) {
int j;
for( j = 0; j < peerCount; ++j )
if( tr_bitsetHas( &peers[j]->have, i ) )
if( tr_bitsetHas( &peers[j]->have, piece ) )
++tab[i];
}
}