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:
parent
978e53a465
commit
b2809267dc
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue