Changeset 6314


Ignore:
Timestamp:
Jul 10, 2008, 6:16:21 PM (13 years ago)
Author:
charles
Message:

(daemon) in remote's `info' feature, bound the verified & download progress from [0..100] instead of [0..1]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/remote.c

    r6313 r6314  
    410410                if( isVerifying( i ) &&
    411411                    tr_bencDictFindStr( t, "recheckProgress", &str ) )
    412                         printf( "  Verified Progress: %.2f%%\n", atof(str) );
     412                        printf( "  Verified Progress: %.2f%%\n", 100.0*atof(str) );
    413413            }
    414414
     
    416416                tr_bencDictFindInt( t, "leftUntilDone", &j ) )
    417417            {
    418                 strlratio( buf, (i-j), i, sizeof( buf ) );
     418                strlratio( buf, 100.0*(i-j), i, sizeof( buf ) );
    419419                printf( "  Download Progress: %s%%\n", buf );
    420420            }
Note: See TracChangeset for help on using the changeset viewer.