Changeset 4860


Ignore:
Timestamp:
Jan 29, 2008, 4:33:29 PM (14 years ago)
Author:
charles
Message:

#665: Ratio calculations aren't strictly accurate when re-seeding a torrent

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r4813 r4860  
    661661    }
    662662
    663     s->ratio = tr_getRatio( s->uploadedEver, MAX( s->downloadedEver, s->haveValid ) );
     663    s->ratio = tr_getRatio( s->uploadedEver,
     664                            s->downloadedEver ? s->downloadedEver : s->haveValid );
    664665   
    665666    tr_torrentUnlock( tor );
Note: See TracChangeset for help on using the changeset viewer.