Changeset 6761


Ignore:
Timestamp:
Sep 16, 2008, 4:56:09 PM (13 years ago)
Author:
charles
Message:

(cli 1.3x) backport #1223 (r6639): "ratio display in CLI client malformed"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/cli/cli.c

    r6754 r6761  
    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.