(trunk libT) fix endgame detection bug introduced in r12248
This commit is contained in:
parent
3e2aee0c02
commit
3043893968
|
@ -874,7 +874,7 @@ testForEndgame( const Torrent * t )
|
||||||
/* we consider ourselves to be in endgame if the number of bytes
|
/* we consider ourselves to be in endgame if the number of bytes
|
||||||
we've got requested is >= the number of bytes left to download */
|
we've got requested is >= the number of bytes left to download */
|
||||||
return ( t->requestCount * t->tor->blockSize )
|
return ( t->requestCount * t->tor->blockSize )
|
||||||
<= tr_cpLeftUntilDone( &t->tor->completion );
|
>= tr_cpLeftUntilDone( &t->tor->completion );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue