Ignore:
Timestamp:
Mar 1, 2009, 11:48:04 PM (13 years ago)
Author:
livings124
Message:

move the percent to the stop ratio into libtransmission

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r7894 r7988  
    388388}
    389389
    390 #warning move to libtransmission
    391390- (CGFloat) progressStopRatio
    392391{
    393     double stopRatio, ratio;
    394     if (!tr_torrentGetSeedRatio(fHandle, &stopRatio) || (ratio = [self ratio]) >= stopRatio)
    395         return 1.0;
    396     else if (stopRatio > 0.0)
    397         return ratio / stopRatio;
    398     else
    399         return 0.0;
     392    return fStat->percentRatio;
    400393}
    401394
Note: See TracChangeset for help on using the changeset viewer.