Changeset 6315


Ignore:
Timestamp:
Jul 10, 2008, 7:22:49 PM (13 years ago)
Author:
charles
Message:

(daemon) remote: clarify the % done vs. % verified a bit. Thanks to feedback from andersos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r6314 r6315  
    406406            if( tr_bencDictFindInt( t, "status", &i ) )
    407407            {
    408                 printf( "  State: %s\n", torrentStatusToString( i ) );
    409 
    410                 if( isVerifying( i ) &&
    411                     tr_bencDictFindStr( t, "recheckProgress", &str ) )
    412                         printf( "  Verified Progress: %.2f%%\n", 100.0*atof(str) );
     408                if( isVerifying( i ) && tr_bencDictFindStr( t, "recheckProgress", &str ) )
     409                    snprintf( buf, sizeof( buf ), " (%.0f%% Done)", 100.0*atof(str) );
     410                else
     411                    *buf = '\0';
     412                printf( "  State: %s%s\n", torrentStatusToString( i ), buf );
     413
    413414            }
    414415
     
    417418            {
    418419                strlratio( buf, 100.0*(i-j), i, sizeof( buf ) );
    419                 printf( "  Download Progress: %s%%\n", buf );
     420                printf( "  Percent Done: %s%%\n", buf );
    420421            }
    421422
Note: See TracChangeset for help on using the changeset viewer.