Changeset 1318


Ignore:
Timestamp:
Jan 8, 2007, 3:18:05 PM (16 years ago)
Author:
livings124
Message:

small improvement

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/clients.c

    r1316 r1318  
    210210    else if( !memcmp( id, "AZ", 2 ) && !memcmp( &id[6], "BT", 2 ) )
    211211    {
    212         asprintf( &ret, "BitTyrant (%c.%c.%c.%c)",
     212        asprintf( &ret, "BitTyrant %c.%c.%c.%c",
    213213                    id[2], id[3], id[4], id[5] );
    214214    }
  • trunk/macosx/Torrent.m

    r1317 r1318  
    596596- (void) updateSpeedSetting
    597597{
    598     if (fLimitCustom)
    599     {
    600         tr_setUploadLimit(fHandle, fCheckUpload ? fUploadLimit : -1);
    601         tr_setDownloadLimit(fHandle, fCheckDownload ? fDownloadLimit : -1);
    602     }
    603     else
    604     {
    605         tr_setUploadLimit(fHandle, -1);
    606         tr_setDownloadLimit(fHandle, -1);
    607     }
     598    tr_setUploadLimit(fHandle, fLimitCustom && fCheckUpload ? fUploadLimit : -1);
     599    tr_setDownloadLimit(fHandle, fLimitCustom && fCheckDownload ? fDownloadLimit : -1);
    608600}
    609601
Note: See TracChangeset for help on using the changeset viewer.