From 39515ea28ba75c0d9e382f040caf3cc3193969f7 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Tue, 13 Apr 2010 00:20:04 +0000 Subject: [PATCH] use leftUntilDone instead of percentDone when determining finished status --- libtransmission/torrent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0