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

small improvement

This commit is contained in:
Mitchell Livingston 2007-01-08 15:18:05 +00:00
parent c6b6e93265
commit 58209af347
2 changed files with 3 additions and 11 deletions

View file

@ -209,7 +209,7 @@ char * tr_clientForId( uint8_t * id )
}
else if( !memcmp( id, "AZ", 2 ) && !memcmp( &id[6], "BT", 2 ) )
{
asprintf( &ret, "BitTyrant (%c.%c.%c.%c)",
asprintf( &ret, "BitTyrant %c.%c.%c.%c",
id[2], id[3], id[4], id[5] );
}
else if( !memcmp( id, "-FG", 3 ) )

View file

@ -595,16 +595,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
- (void) updateSpeedSetting
{
if (fLimitCustom)
{
tr_setUploadLimit(fHandle, fCheckUpload ? fUploadLimit : -1);
tr_setDownloadLimit(fHandle, fCheckDownload ? fDownloadLimit : -1);
}
else
{
tr_setUploadLimit(fHandle, -1);
tr_setDownloadLimit(fHandle, -1);
}
tr_setUploadLimit(fHandle, fLimitCustom && fCheckUpload ? fUploadLimit : -1);
tr_setDownloadLimit(fHandle, fLimitCustom && fCheckDownload ? fDownloadLimit : -1);
}
- (void) setWaitToStart: (BOOL) wait