diff --git a/macosx/Torrent.m b/macosx/Torrent.m index a4a4ecb01..07901bce2 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -268,11 +268,11 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 && (canMove = [self alertForMoveFolderAvailable])) { //pause without actually stopping - tr_setUseCustomUpload(fHandle, 1); - tr_setUploadLimit(fHandle, 0); + tr_torrentEnableMaxSpeedUL(fHandle, 1); + tr_torrentSetMaxSpeedUL(fHandle, 0); - tr_setUseCustomDownload(fHandle, 1); - tr_setDownloadLimit(fHandle, 0); + tr_torrentEnableMaxSpeedDL(fHandle, 1); + tr_torrentSetMaxSpeedDL(fHandle, 0); if ([[NSFileManager defaultManager] movePath: [[self downloadFolder] stringByAppendingPathComponent: [self name]] toPath: [fDownloadFolder stringByAppendingPathComponent: [self name]] handler: nil]) @@ -687,11 +687,11 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 - (void) updateSpeedSetting { - tr_setUseCustomUpload(fHandle, fCheckUpload != NSMixedState); - tr_setUploadLimit(fHandle, fCheckUpload == NSOnState ? fUploadLimit : -1); + tr_torrentEnableMaxSpeedUL(fHandle, fCheckUpload != NSMixedState); + tr_torrentSetMaxSpeedUL(fHandle, fCheckUpload == NSOnState ? fUploadLimit : -1); - tr_setUseCustomDownload(fHandle, fCheckDownload != NSMixedState); - tr_setDownloadLimit(fHandle, fCheckDownload == NSOnState ? fDownloadLimit : -1); + tr_torrentEnableMaxSpeedDL(fHandle, fCheckDownload != NSMixedState); + tr_torrentSetMaxSpeedDL(fHandle, fCheckDownload == NSOnState ? fDownloadLimit : -1); } - (void) setWaitToStart: (BOOL) wait @@ -756,8 +756,11 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80 } //pause without actually stopping - tr_setDownloadLimit(fHandle, 0); - tr_setUploadLimit(fHandle, 0); + tr_torrentEnableMaxSpeedUL(fHandle, 1); + tr_torrentSetMaxSpeedUL(fHandle, 0); + + tr_torrentEnableMaxSpeedDL(fHandle, 1); + tr_torrentSetMaxSpeedDL(fHandle, 0); if ([[NSFileManager defaultManager] movePath: [oldFolder stringByAppendingPathComponent: [self name]] toPath: [folder stringByAppendingPathComponent: [self name]] handler: nil]) diff --git a/transmission.spec.in b/transmission.spec.in index 99a570127..9bad099e0 100644 --- a/transmission.spec.in +++ b/transmission.spec.in @@ -2,7 +2,7 @@ %define version @VERSION@ %define release 1 -Summary: Transmission Bittorrent Client +Summary: Transmission BitTorrent Client Name: %{name} Version: %{version} Release: %{release}