Changeset 10956


Ignore:
Timestamp:
Jul 6, 2010, 8:52:54 PM (12 years ago)
Author:
charles
Message:

(trunk) #3045 fix oops from last commit

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r10955 r10956  
    15801580void
    15811581tr_formatter_size_init( unsigned int kilo,
    1582                         const char * b, const char * kb,
    1583                         const char * mb, const char * gb )
    1584 {
    1585     formatter_init( &size_units, kilo, b, kb, mb, gb );
     1582                        const char * kb, const char * mb,
     1583                        const char * gb, const char * tb )
     1584{
     1585    formatter_init( &size_units, kilo, kb, mb, gb, tb );
    15861586}
    15871587
     
    15981598void
    15991599tr_formatter_speed_init( unsigned int kilo,
    1600                          const char * b, const char * kb,
    1601                          const char * mb, const char * gb )
     1600                         const char * kb, const char * mb,
     1601                         const char * gb, const char * tb )
    16021602{
    16031603    tr_speed_K = kilo;
    1604     formatter_init( &speed_units, kilo, b, kb, mb, gb );
     1604    formatter_init( &speed_units, kilo, kb, mb, gb, tb );
    16051605}
    16061606
     
    16181618void
    16191619tr_formatter_mem_init( unsigned int kilo,
    1620                        const char * b, const char * kb,
    1621                        const char * mb, const char * gb )
     1620                       const char * kb, const char * mb,
     1621                       const char * gb, const char * tb )
    16221622{
    16231623    tr_mem_K = kilo;
    1624     formatter_init( &mem_units, kilo, b, kb, mb, gb );
     1624    formatter_init( &mem_units, kilo, kb, mb, gb, tb );
    16251625}
    16261626
  • trunk/libtransmission/utils.h

    r10937 r10956  
    563563***/
    564564
    565 /* example: tr_formatter_size_init( 1024, _("B"), _("KiB"), _("MiB"), _("GiB") ); */
    566 
    567 void tr_formatter_size_init( unsigned int kilo, const char * b, const char * kb,
    568                                                 const char * mb, const char * gb );
    569 
    570 void tr_formatter_speed_init( unsigned int kilo, const char * b, const char * kb,
    571                                                  const char * mb, const char * gb );
    572 
    573 void tr_formatter_mem_init( unsigned int kilo, const char * b, const char * kb,
    574                                                const char * mb, const char * gb );
     565/* example: tr_formatter_size_init( 1024, _("KiB"), _("MiB"), _("GiB"), _("TiB") ); */
     566
     567void tr_formatter_size_init( unsigned int kilo, const char * kb, const char * mb,
     568                                                const char * gb, const char * tb );
     569
     570void tr_formatter_speed_init( unsigned int kilo, const char * kb, const char * mb,
     571                                                 const char * gb, const char * tb );
     572
     573void tr_formatter_mem_init( unsigned int kilo, const char * kb, const char * mb,
     574                                               const char * gb, const char * tb );
    575575
    576576/* format a speed into a user-readable string. */
  • trunk/macosx/Controller.m

    r10955 r10956  
    339339        #warning localize and make consistent
    340340        tr_formatter_size_init(1024, "KB", "MB", "GB", "TB");
    341         tr_formatter_speed_init(1024, "B/s", "KB/s", "MB/s", "GB/s", "TB/s");
     341        tr_formatter_speed_init(1024, "KB/s", "MB/s", "GB/s", "TB/s");
    342342        tr_formatter_mem_init(1024, "KB", "MB", "GB", "TB");
    343343       
Note: See TracChangeset for help on using the changeset viewer.