mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
get compiling with new speed code
This commit is contained in:
parent
637d06e37d
commit
15f1a5f9ad
1 changed files with 10 additions and 6 deletions
|
@ -332,15 +332,19 @@
|
|||
{
|
||||
if ([fDefaults boolForKey: @"SpeedLimit"])
|
||||
{
|
||||
tr_setGlobalUploadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitUploadLimit"]);
|
||||
tr_setGlobalDownloadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitDownloadLimit"]);
|
||||
tr_setUseGlobalSpeedLimit(fHandle, TR_UP, 1);
|
||||
tr_setGlobalSpeedLimit(fHandle, TR_UP, [fDefaults integerForKey: @"SpeedLimitUploadLimit"]);
|
||||
|
||||
tr_setUseGlobalSpeedLimit(fHandle, TR_DOWN, 1);
|
||||
tr_setGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults integerForKey: @"SpeedLimitDownloadLimit"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
tr_setGlobalUploadLimit(fHandle, [fDefaults boolForKey: @"CheckUpload"]
|
||||
? [fDefaults integerForKey: @"UploadLimit"] : -1);
|
||||
tr_setGlobalDownloadLimit(fHandle, [fDefaults boolForKey: @"CheckDownload"]
|
||||
? [fDefaults integerForKey: @"DownloadLimit"] : -1);
|
||||
tr_setUseGlobalSpeedLimit(fHandle, TR_UP, [fDefaults boolForKey: @"CheckUpload"]);
|
||||
tr_setGlobalSpeedLimit(fHandle, TR_UP, [fDefaults integerForKey: @"UploadLimit"]);
|
||||
|
||||
tr_setUseGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults boolForKey: @"CheckDownload"]);
|
||||
tr_setGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults integerForKey: @"DownloadLimit"]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue