use leftUntilDone instead of percentDone when determining finished status

This commit is contained in:
Mitchell Livingston 2010-04-13 00:20:04 +00:00
parent c1f73b89d7
commit 39515ea28b
1 changed files with 1 additions and 1 deletions

View File

@ -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;