Ignore:
Timestamp:
Jul 9, 2010, 8:53:38 PM (11 years ago)
Author:
charles
Message:

(trunk) some units formatter cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r10977 r10986  
    16441644
    16451645char*
    1646 tr_formatter_speed_Bps( char * buf, uint64_t bytes_per_second, size_t buflen )
     1646tr_formatter_speed_KBps( char * buf, double KBps, size_t buflen )
    16471647{
    16481648    const double K = speed_units.units[TR_FMT_KB].value;
    1649     double speed = bytes_per_second / K;
     1649    double speed = KBps;
    16501650
    16511651    if( speed <= 999.95 ) /* 0.0 KB to 999.9 KB */
Note: See TracChangeset for help on using the changeset viewer.