aboutsummaryrefslogtreecommitdiffstats
path: root/transmission-remote-cli
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-05-03 15:23:13 +0100
committerJonathan McCrohan <jmccrohan@gmail.com>2012-05-03 15:23:13 +0100
commit6dfa49c0958a784ed86c5055f2a7b7c1fb0573cc (patch)
tree37d4266aa8c4f91d83a1def63ccca0484063d23c /transmission-remote-cli
parent564a401bc42ecfc10406e1f406c8f5ea2b4d5959 (diff)
downloadtransmission-remote-cli-6dfa49c0958a784ed86c5055f2a7b7c1fb0573cc.tar.gz
Imported Upstream version 1.2.2upstream/1.2.2
Diffstat (limited to '')
-rwxr-xr-xtransmission-remote-cli.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/transmission-remote-cli.py b/transmission-remote-cli.py
index 948d966..ff7a487 100755
--- a/transmission-remote-cli.py
+++ b/transmission-remote-cli.py
@@ -16,7 +16,7 @@
# http://www.gnu.org/licenses/gpl-3.0.txt #
########################################################################
-VERSION = '1.2.1'
+VERSION = '1.2.2'
TRNSM_VERSION_MIN = '1.90'
TRNSM_VERSION_MAX = '2.51'
@@ -2732,12 +2732,14 @@ class Interface:
limit = self.dialog_input_number('Upload limit for Turtle Mode in kilobytes per second',
self.stats['alt-speed-up'],
allow_negative_one=False)
- server.set_option('alt-speed-up', limit)
+ if limit != -128:
+ server.set_option('alt-speed-up', limit)
elif c == ord('r'):
limit = self.dialog_input_number('Download limit for Turtle Mode in kilobytes per second',
self.stats['alt-speed-down'],
allow_negative_one=False)
- server.set_option('alt-speed-down', limit)
+ if limit != -128:
+ server.set_option('alt-speed-down', limit)
elif c == ord('b'):
self.torrentname_is_progressbar = not self.torrentname_is_progressbar