Changeset 2446


Ignore:
Timestamp:
Jul 20, 2007, 8:35:15 PM (15 years ago)
Author:
livings124
Message:

get compiling with new speed code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PrefsController.m

    r2271 r2446  
    333333    if ([fDefaults boolForKey: @"SpeedLimit"])
    334334    {
    335         tr_setGlobalUploadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitUploadLimit"]);
    336         tr_setGlobalDownloadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitDownloadLimit"]);
     335        tr_setUseGlobalSpeedLimit(fHandle, TR_UP, 1);
     336        tr_setGlobalSpeedLimit(fHandle, TR_UP, [fDefaults integerForKey: @"SpeedLimitUploadLimit"]);
     337       
     338        tr_setUseGlobalSpeedLimit(fHandle, TR_DOWN, 1);
     339        tr_setGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults integerForKey: @"SpeedLimitDownloadLimit"]);
    337340    }
    338341    else
    339342    {
    340         tr_setGlobalUploadLimit(fHandle, [fDefaults boolForKey: @"CheckUpload"]
    341                                         ? [fDefaults integerForKey: @"UploadLimit"] : -1);
    342         tr_setGlobalDownloadLimit(fHandle, [fDefaults boolForKey: @"CheckDownload"]
    343                                         ? [fDefaults integerForKey: @"DownloadLimit"] : -1);
     343        tr_setUseGlobalSpeedLimit(fHandle, TR_UP, [fDefaults boolForKey: @"CheckUpload"]);
     344        tr_setGlobalSpeedLimit(fHandle, TR_UP, [fDefaults integerForKey: @"UploadLimit"]);
     345       
     346        tr_setUseGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults boolForKey: @"CheckDownload"]);
     347        tr_setGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults integerForKey: @"DownloadLimit"]);
    344348    }
    345349}
Note: See TracChangeset for help on using the changeset viewer.