1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-23 16:24:02 +00:00

#5033 cli prints wrong status on console

This commit is contained in:
Mitchell Livingston 2012-09-07 02:45:49 +00:00
parent 05355c876f
commit 42f085fa4b

View file

@ -146,18 +146,18 @@ getStatusStr( const tr_stat * st,
char * buf,
size_t buflen )
{
if( st->activity & TR_STATUS_CHECK_WAIT )
if( st->activity == TR_STATUS_CHECK_WAIT )
{
tr_snprintf( buf, buflen, "Waiting to verify local files" );
}
else if( st->activity & TR_STATUS_CHECK )
else if( st->activity == TR_STATUS_CHECK )
{
tr_snprintf( buf, buflen,
"Verifying local files (%.2f%%, %.2f%% valid)",
tr_truncd( 100 * st->recheckProgress, 2 ),
tr_truncd( 100 * st->percentDone, 2 ) );
}
else if( st->activity & TR_STATUS_DOWNLOAD )
else if( st->activity == TR_STATUS_DOWNLOAD )
{
char upStr[80];
char dnStr[80];
@ -177,7 +177,7 @@ getStatusStr( const tr_stat * st,
st->peersGettingFromUs, upStr,
ratioStr );
}
else if( st->activity & TR_STATUS_SEED )
else if( st->activity == TR_STATUS_SEED )
{
char upStr[80];
char ratioStr[80];