Ignore:
Timestamp:
Jun 21, 2007, 2:47:26 PM (15 years ago)
Author:
charles
Message:

adding experimental implementation of Tamilmani's `Swift' tit-for-tat algorithm for testing. To tweak or disable, change the values around line 50 of libtransmission/peer.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r2159 r2177  
    607607        for( j = 0; j < tor->peerCount; j++ )
    608608        {
    609             if( tr_peerBitfield( tor->peers[j] ) &&
    610                 tr_bitfieldHas( tr_peerBitfield( tor->peers[j] ), piece ) )
     609            if( tr_peerHasPiece( tor->peers[j], piece ) )
    611610            {
    612611                (tab[i])++;
Note: See TracChangeset for help on using the changeset viewer.