Changeset 6639


Ignore:
Timestamp:
Aug 22, 2008, 10:54:59 PM (13 years ago)
Author:
charles
Message:

(cli) #1223 ratio display in CLI client malformed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cli/cli.c

    r6556 r6639  
    7474        tr_strlcpy( buf, "Inf", buflen );
    7575    else if( ratio < 10.0 )
    76         tr_snprintf( buf, buflen, "%'.2f", ratio );
     76        tr_snprintf( buf, buflen, "%.2f", ratio );
    7777    else if( ratio < 100.0 )
    78         tr_snprintf( buf, buflen, "%'.1f", ratio );
     78        tr_snprintf( buf, buflen, "%.1f", ratio );
    7979    else
    80         tr_snprintf( buf, buflen, "%'.0f", ratio );
     80        tr_snprintf( buf, buflen, "%.0f", ratio );
    8181    return buf;
    8282}
Note: See TracChangeset for help on using the changeset viewer.