Changeset 2493


Ignore:
Timestamp:
Jul 25, 2007, 4:50:32 PM (15 years ago)
Author:
charles
Message:

Follow Azureus' and uTorrent's lead in not counting corrupt pieces in our announce data, as it could give us a misleadingly bad share ratio . (Ticket #263)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peerparse.h

    r2427 r2493  
    351351    if( ( ret = tr_ioHash( tor->io, index ) ) )
    352352    {
     353        /* Follow Azureus' and uTorrent's lead in not counting corrupt
     354           pieces in our announce data, as it could give us a misleadingly
     355           bad share ratio . (Ticket #263) */
     356        const int byteCount = tr_pieceSize( index );
     357        if( tor->downloadedCur >= byteCount )
     358            tor->downloadedCur -= byteCount;
     359
    353360        return ret;
    354361    }
Note: See TracChangeset for help on using the changeset viewer.