(trunk libT) fix endgame detection bug introduced in r12248

This commit is contained in:
Jordan Lee 2011-03-29 22:02:27 +00:00
parent 3e2aee0c02
commit 3043893968
1 changed files with 1 additions and 1 deletions

View File

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