Changeset 12551


Ignore:
Timestamp:
Jul 17, 2011, 2:15:02 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) truncate the fractions when formatting KB/s speeds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r12545 r12551  
    17311731
    17321732    if( speed <= 999.95 ) /* 0.0 KB to 999.9 KB */
    1733         tr_snprintf( buf, buflen, "%.2f %s", speed, speed_units.units[TR_FMT_KB].name );
     1733        tr_snprintf( buf, buflen, "%d %s", (int)speed, speed_units.units[TR_FMT_KB].name );
    17341734    else {
    17351735        speed /= K;
Note: See TracChangeset for help on using the changeset viewer.