#3911: tr_peerMgrTorrentAvailability() doesn't sample across the entire torrent' -- fixed.
This commit is contained in:
parent
246bd4a84b
commit
7f01f0c3ee
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue