Changeset 12920


Ignore:
Timestamp:
Sep 26, 2011, 10:48:50 PM (10 years ago)
Author:
jordan
Message:

peer.have was being initialized to the block count, rather than the piece count, resulting in wasted overhead.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r12905 r12920  
    402402    {
    403403        peer = peerNew( atom );
    404         tr_bitfieldConstruct( &peer->have, torrent->tor->blockCount );
     404        tr_bitfieldConstruct( &peer->have, torrent->tor->info.pieceCount );
    405405        tr_bitfieldConstruct( &peer->blame, torrent->tor->blockCount );
    406406        tr_ptrArrayInsertSorted( &torrent->peers, peer, peerCompare );
Note: See TracChangeset for help on using the changeset viewer.