use leftUntilDone instead of percentDone when determining finished status
This commit is contained in:
parent
c1f73b89d7
commit
39515ea28b
|
@ -1052,7 +1052,7 @@ tr_torrentStat( tr_torrent * tor )
|
|||
break;
|
||||
}
|
||||
|
||||
s->finished = s->percentDone == 1.0 && checkSeedRatio && (s->ratio >= seedRatio || s->ratio == TR_RATIO_INF);
|
||||
s->finished = !s->leftUntilDone && checkSeedRatio && (s->ratio >= seedRatio || s->ratio == TR_RATIO_INF);
|
||||
|
||||
if( !checkSeedRatio || s->ratio >= seedRatio || s->ratio == TR_RATIO_INF )
|
||||
s->percentRatio = 1.0;
|
||||
|
|
Loading…
Reference in New Issue