Ignore:
Timestamp:
Jun 24, 2010, 5:34:56 PM (11 years ago)
Author:
charles
Message:

(2.0x) #3340 "tr_moveFile() can be faster" -- fixed for 2.01

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r10831 r10837  
    13661366
    13671367char*
     1368tr_strtruncd( char * buf, double x, int precision, size_t buflen )
     1369{
     1370    tr_snprintf( buf, buflen, "%.*f", precision, tr_truncd( x, precision ) );
     1371
     1372    return buf;
     1373}
     1374
     1375char*
    13681376tr_strpercent( char * buf, double x, size_t buflen )
    13691377{
     
    13861394    else
    13871395        tr_strpercent( buf, ratio, buflen );
    1388     return buf;
    1389 }
    1390 
    1391 char*
    1392 tr_strtruncd( char * buf, double x, int precision, size_t buflen )
    1393 {
    1394     tr_snprintf( buf, buflen, "%.*f", precision, tr_truncd( x, precision ) );
    1395 
    13961396    return buf;
    13971397}
Note: See TracChangeset for help on using the changeset viewer.