mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
small improvement
This commit is contained in:
parent
c6b6e93265
commit
58209af347
2 changed files with 3 additions and 11 deletions
|
@ -209,7 +209,7 @@ char * tr_clientForId( uint8_t * id )
|
||||||
}
|
}
|
||||||
else if( !memcmp( id, "AZ", 2 ) && !memcmp( &id[6], "BT", 2 ) )
|
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] );
|
id[2], id[3], id[4], id[5] );
|
||||||
}
|
}
|
||||||
else if( !memcmp( id, "-FG", 3 ) )
|
else if( !memcmp( id, "-FG", 3 ) )
|
||||||
|
|
|
@ -595,16 +595,8 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
||||||
|
|
||||||
- (void) updateSpeedSetting
|
- (void) updateSpeedSetting
|
||||||
{
|
{
|
||||||
if (fLimitCustom)
|
tr_setUploadLimit(fHandle, fLimitCustom && fCheckUpload ? fUploadLimit : -1);
|
||||||
{
|
tr_setDownloadLimit(fHandle, fLimitCustom && fCheckDownload ? fDownloadLimit : -1);
|
||||||
tr_setUploadLimit(fHandle, fCheckUpload ? fUploadLimit : -1);
|
|
||||||
tr_setDownloadLimit(fHandle, fCheckDownload ? fDownloadLimit : -1);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
tr_setUploadLimit(fHandle, -1);
|
|
||||||
tr_setDownloadLimit(fHandle, -1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setWaitToStart: (BOOL) wait
|
- (void) setWaitToStart: (BOOL) wait
|
||||||
|
|
Loading…
Reference in a new issue