From 30438939685cf8b8ae839d7ff8d2be170ffd3cd2 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Tue, 29 Mar 2011 22:02:27 +0000 Subject: [PATCH] (trunk libT) fix endgame detection bug introduced in r12248 --- libtransmission/peer-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libtransmission/peer-mgr.c b/libtransmission/peer-mgr.c index 8d55573c7..8044f532c 100644 --- a/libtransmission/peer-mgr.c +++ b/libtransmission/peer-mgr.c @@ -874,7 +874,7 @@ testForEndgame( const Torrent * t ) /* we consider ourselves to be in endgame if the number of bytes we've got requested is >= the number of bytes left to download */ return ( t->requestCount * t->tor->blockSize ) - <= tr_cpLeftUntilDone( &t->tor->completion ); + >= tr_cpLeftUntilDone( &t->tor->completion ); } static void