Changeset 2068


Ignore:
Timestamp:
Jun 13, 2007, 5:15:11 PM (15 years ago)
Author:
charles
Message:

better bitfield

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/libtransmission/peer.c

    r2067 r2068  
    575575
    576576        /* TODO: add some asserts to see if this bitfield is really necessary */
    577         tr_bitfield_t * blocksAlreadyRequested = tr_bitfieldNew( 1 + tor->info.totalSize / tor->blockSize );
     577        tr_bitfield_t * blocksAlreadyRequested = tr_bitfieldNew( tor->info.blockCount );
    578578        for( i=0; i<peer->inRequestCount; ++i) {
    579579            const tr_request_t * r = &peer->inRequests[i];
Note: See TracChangeset for help on using the changeset viewer.