Changeset 7978


Ignore:
Timestamp:
Mar 1, 2009, 2:01:49 PM (13 years ago)
Author:
livings124
Message:

make the ratio that is checked for stop ratio match the displayed ratio

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/platform.c

    r7975 r7978  
    489489        {
    490490
    491 #ifdef SYS_DARWIN /* on Mac, look in the app package first, before default unix directories */
     491#ifdef SYS_DARWIN /* on Mac, look in the app package first, then the Application Support folder (for daemon, etc) */
    492492
    493493            CFURLRef appURL = CFBundleCopyBundleURL( CFBundleGetMainBundle( ) );
     
    550550            }
    551551
    552 #else /* follow the XDG spec */
     552#else /* everyone else, follow the XDG spec */
    553553
    554554            tr_list *candidates = NULL, *l;
  • trunk/libtransmission/torrent.c

    r7977 r7978  
    21302130    {
    21312131        const double up = tor->uploadedCur + tor->uploadedPrev;
    2132         const double down = tor->downloadedCur + tor->downloadedPrev;
     2132        double down = tor->downloadedCur + tor->downloadedPrev;
     2133        if (!down)
     2134            down = tr_cpHaveValid( &tor->completion );
     2135       
    21332136        const double ratio = tr_getRatio( up, down );
    21342137        if( ratio >= seedRatio )
Note: See TracChangeset for help on using the changeset viewer.