1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

get compiling with new speed code

This commit is contained in:
Mitchell Livingston 2007-07-20 20:35:15 +00:00
parent 637d06e37d
commit 15f1a5f9ad

View file

@ -332,15 +332,19 @@
{ {
if ([fDefaults boolForKey: @"SpeedLimit"]) if ([fDefaults boolForKey: @"SpeedLimit"])
{ {
tr_setGlobalUploadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitUploadLimit"]); tr_setUseGlobalSpeedLimit(fHandle, TR_UP, 1);
tr_setGlobalDownloadLimit(fHandle, [fDefaults integerForKey: @"SpeedLimitDownloadLimit"]); tr_setGlobalSpeedLimit(fHandle, TR_UP, [fDefaults integerForKey: @"SpeedLimitUploadLimit"]);
tr_setUseGlobalSpeedLimit(fHandle, TR_DOWN, 1);
tr_setGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults integerForKey: @"SpeedLimitDownloadLimit"]);
} }
else else
{ {
tr_setGlobalUploadLimit(fHandle, [fDefaults boolForKey: @"CheckUpload"] tr_setUseGlobalSpeedLimit(fHandle, TR_UP, [fDefaults boolForKey: @"CheckUpload"]);
? [fDefaults integerForKey: @"UploadLimit"] : -1); tr_setGlobalSpeedLimit(fHandle, TR_UP, [fDefaults integerForKey: @"UploadLimit"]);
tr_setGlobalDownloadLimit(fHandle, [fDefaults boolForKey: @"CheckDownload"]
? [fDefaults integerForKey: @"DownloadLimit"] : -1); tr_setUseGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults boolForKey: @"CheckDownload"]);
tr_setGlobalSpeedLimit(fHandle, TR_DOWN, [fDefaults integerForKey: @"DownloadLimit"]);
} }
} }