From 7f01f0c3ee6fd7495a42e1460ed12ca688119f96 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Tue, 18 Jan 2011 22:21:09 +0000 Subject: [PATCH] #3911: tr_peerMgrTorrentAvailability() doesn't sample across the entire torrent' -- fixed. --- libtransmission/peer-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 7d33486fd..79902c57f 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -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]; } }