Changeset 5728


Ignore:
Timestamp:
Apr 29, 2008, 8:44:36 PM (15 years ago)
Author:
livings124
Message:

for peer id's with 2 major digits, if the tens place is 0, don't show it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/clients.c

    r5727 r5728  
    8484two_major_two_minor( char * buf, size_t buflen, const char * name, const uint8_t * digits )
    8585{
    86     snprintf( buf, buflen, "%s %02d.%02d", name,
    87               strint( digits+0, 2 ),
     86    snprintf( buf, buflen, "%s %d.%02d", name,
     87              strint( digits, 2 ),
    8888              strint( digits+2, 2 ) );
    8989}
Note: See TracChangeset for help on using the changeset viewer.