Ignore:
Timestamp:
Oct 25, 2009, 6:45:35 PM (13 years ago)
Author:
livings124
Message:

since the Mac UI is the only one to use it, move percentRatio calculation into the Mac code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r9397 r9403  
    10251025    }
    10261026
    1027     if( !checkSeedRatio || s->ratio >= seedRatio || s->ratio == TR_RATIO_INF )
    1028         s->percentRatio = 1.0;
    1029     else if( s->ratio == TR_RATIO_NA )
    1030         s->percentRatio = 0.0;
    1031     else
    1032         s->percentRatio = s->ratio / seedRatio;
    1033 
    10341027    tr_torrentUnlock( tor );
    10351028
Note: See TracChangeset for help on using the changeset viewer.