can't set max_upload_speed to unlimited
Posted: Mon May 25, 2009 9:21 pm
Hello,
I'm trying to set my max_upload_speed and max_download_speed trough the console ui, so I can schedule the used bandwith (like described here).However, when I try to set the limit to -1.0 (unlimited) I get an error. I've tried different ways to enter -1 (-1, -1.0, "-1.0", Unlimited), but none works. Any other value than -1, works fine.
Does anyone knows what I'm doing wrong here?
The command I use is:
And the error is:
I'm trying to set my max_upload_speed and max_download_speed trough the console ui, so I can schedule the used bandwith (like described here).However, when I try to set the limit to -1.0 (unlimited) I get an error. I've tried different ways to enter -1 (-1, -1.0, "-1.0", Unlimited), but none works. Any other value than -1, works fine.
Does anyone knows what I'm doing wrong here?
The command I use is:
Code: Select all
deluge -u console -a "config -s max_upload_speed -1.0"
Code: Select all
Traceback (most recent call last):
File "/usr/local/bin/deluge", line 8, in <module>
load_entry_point('deluge==1.1.5', 'console_scripts', 'deluge')()
File "/usr/local/lib/python2.6/site-packages/deluge-1.1.5-py2.6-linux-i686.egg/deluge/main.py", line 112, in start_ui
UI(options, args, options.args)
File "/usr/local/lib/python2.6/site-packages/deluge-1.1.5-py2.6-linux-i686.egg/deluge/ui/ui.py", line 62, in __init__
ui = ConsoleUI(ui_args).run()
File "/usr/local/lib/python2.6/site-packages/deluge-1.1.5-py2.6-linux-i686.egg/deluge/ui/console/main.py", line 127, in __init__
self.onecmd(arg)
File "/usr/local/lib/python2.6/site-packages/deluge-1.1.5-py2.6-linux-i686.egg/deluge/ui/console/main.py", line 191, in onecmd
options, args = parser.parse_args(args)
File "/usr/lib/python2.6/optparse.py", line 1380, in parse_args
self.error(str(err))
File "/usr/lib/python2.6/optparse.py", line 1378, in parse_args
stop = self._process_args(largs, rargs, values)
File "/usr/lib/python2.6/optparse.py", line 1422, in _process_args
self._process_short_opts(rargs, values)
File "/usr/lib/python2.6/optparse.py", line 1505, in _process_short_opts
raise BadOptionError(opt)
optparse.BadOptionError: no such option: -1