1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

Better BitTorrent client identification.

This commit is contained in:
Mitchell Livingston 2006-08-16 01:52:20 +00:00
parent cc242002a1
commit f6cd9ef67f
3 changed files with 7 additions and 1 deletions

View file

@ -85,6 +85,12 @@ char * tr_clientForId( uint8_t * id )
{
asprintf( &ret, "BitTorrent %c.%c.%c", id[1], id[3], id[5] );
}
else if( id[0] == 'M' && id[2] == '-' &&
id[5] == '-' && id[7] == '-' )
{
asprintf( &ret, "BitTorrent %c.%c%c.%c", id[1], id[3], id[4], id[6] );
}
else if( !memcmp( id, "exbc", 4 ) )
{
asprintf( &ret, "BitComet %d.%02d", id[4], id[5] );

View file

@ -917,7 +917,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
? fSpeedLimitBlueImage : fSpeedLimitGraphiteImage];
}
- (void) updateUI: (NSTimer *) t
- (void) updateUI: (NSTimer *) timer
{
[fTorrents makeObjectsPerformSelector: @selector(update)];