Changeset 13473


Ignore:
Timestamp:
Sep 7, 2012, 2:45:49 AM (9 years ago)
Author:
livings124
Message:

#5033 cli prints wrong status on console

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/cli.c

    r13195 r13473  
    147147              size_t          buflen )
    148148{
    149     if( st->activity & TR_STATUS_CHECK_WAIT )
     149    if( st->activity == TR_STATUS_CHECK_WAIT )
    150150    {
    151151        tr_snprintf( buf, buflen, "Waiting to verify local files" );
    152152    }
    153     else if( st->activity & TR_STATUS_CHECK )
     153    else if( st->activity == TR_STATUS_CHECK )
    154154    {
    155155        tr_snprintf( buf, buflen,
     
    158158                     tr_truncd( 100 * st->percentDone, 2 ) );
    159159    }
    160     else if( st->activity & TR_STATUS_DOWNLOAD )
     160    else if( st->activity == TR_STATUS_DOWNLOAD )
    161161    {
    162162        char upStr[80];
     
    178178            ratioStr );
    179179    }
    180     else if( st->activity & TR_STATUS_SEED )
     180    else if( st->activity == TR_STATUS_SEED )
    181181    {
    182182        char upStr[80];
Note: See TracChangeset for help on using the changeset viewer.