#917: small speedup to r5759 suggested by BentMyWookie
This commit is contained in:
parent
9404711233
commit
d047c1175d
|
@ -1734,6 +1734,8 @@ shouldPeerBeClosed( const Torrent * t, const tr_peer * peer, int peerCount )
|
|||
int peerHasEverything;
|
||||
if( atom->flags & ADDED_F_SEED_FLAG )
|
||||
peerHasEverything = TRUE;
|
||||
else if( peer->progress < tr_cpPercentDone( tor->completion ) )
|
||||
peerHasEverything = FALSE;
|
||||
else {
|
||||
tr_bitfield * tmp = tr_bitfieldDup( tr_cpPieceBitfield( tor->completion ) );
|
||||
tr_bitfieldDifference( tmp, peer->have );
|
||||
|
|
Loading…
Reference in New Issue