From: Mitchell Livingston Date: Tue, 13 Apr 2010 00:20:04 +0000 (+0000) Subject: use leftUntilDone instead of percentDone when determining finished status X-Git-Tag: 2.00~243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39515ea28ba75c0d9e382f040caf3cc3193969f7;p=transmission use leftUntilDone instead of percentDone when determining finished status --- diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 4ed7e8731..e85de623f 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -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;