Changeset 7989


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

if the ratio is infinity, stop seeding if a stop ratio is set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r7988 r7989  
    927927    }
    928928
    929     if ( !checkSeedRatio || s->ratio >= seedRatio || s->ratio == TR_RATIO_INF )
     929    if( !checkSeedRatio || s->ratio >= seedRatio || s->ratio == TR_RATIO_INF )
    930930        s->percentRatio = 1.0;
    931     else if ( s->ratio == TR_RATIO_NA )
     931    else if( s->ratio == TR_RATIO_NA )
    932932        s->percentRatio = 0.0;
    933933    else
     
    21482148        ratio = tr_getRatio( up, down );
    21492149
    2150         if( ratio >= seedRatio )
     2150        if( ratio >= seedRatio || ratio == TR_RATIO_INF )
    21512151        {
    21522152            tr_torrentStop( tor );
Note: See TracChangeset for help on using the changeset viewer.