1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

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

This commit is contained in:
Mitchell Livingston 2008-04-29 20:44:36 +00:00
parent 978e53a465
commit b2809267dc

View file

@ -83,8 +83,8 @@ four_digits( char * buf, size_t buflen, const char * name, const uint8_t * digit
static void
two_major_two_minor( char * buf, size_t buflen, const char * name, const uint8_t * digits )
{
snprintf( buf, buflen, "%s %02d.%02d", name,
strint( digits+0, 2 ),
snprintf( buf, buflen, "%s %d.%02d", name,
strint( digits, 2 ),
strint( digits+2, 2 ) );
}
static void