Page 1 of 1

can't set max_upload_speed to unlimited

Posted: Mon May 25, 2009 9:21 pm
by zifnab
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:

Code: Select all

deluge -u console -a "config -s max_upload_speed -1.0"
And the error is:

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

Re: can't set max_upload_speed to unlimited

Posted: Tue May 26, 2009 3:06 am
by loki
hmm, does it work if you put it in parenthesis? (-1)

Re: can't set max_upload_speed to unlimited

Posted: Tue May 26, 2009 3:19 pm
by zifnab
Nope. If I try that I get the following error.

Code: Select all

 * malformed expression (-)
At least with this, the ui does not crash like with the other options.

I guess I could solve it by setting the limits to an arbitrary large number.

Re: can't set max_upload_speed to unlimited

Posted: Tue May 26, 2009 6:31 pm
by andar
Setting it to 0.0 should accomplish the same thing.. I'll have to look into this for the new console ui..

Re: can't set max_upload_speed to unlimited

Posted: Thu May 28, 2009 4:32 pm
by zifnab
Thanks, 0.0 worked.

Re: can't set max_upload_speed to unlimited

Posted: Sun Jun 14, 2009 12:52 pm
by bonfire89
I'm just learning how to use the deluge console, and a bit of a linux n00b...

what is the -a switch as show below? I didn't see it in "man deluge". Is it generic to linux?

deluge -u console -a "config -s max_upload_speed 0.0"

thanks!

Re: can't set max_upload_speed to unlimited

Posted: Sun Jun 14, 2009 6:21 pm
by andar
bonfire89 wrote:I'm just learning how to use the deluge console, and a bit of a linux n00b...

what is the -a switch as show below? I didn't see it in "man deluge". Is it generic to linux?

deluge -u console -a "config -s max_upload_speed 0.0"

thanks!
It just means to run that command in the console without actually starting it in interative mode.

Re: can't set max_upload_speed to unlimited

Posted: Sun Jun 14, 2009 6:31 pm
by bonfire89
oh cool, Thank you.

Re: can't set max_upload_speed to unlimited

Posted: Wed Sep 09, 2009 5:08 am
by mmand
Hey there. I'm sorry to revive this months-old topic, but I recently found the above-mentioned Wiki article on making a cron job to act as scheduler.

I too wanted to set my upload/download limits to unlimited but nothing worked. After finding this, I can say that using 0.0 does work, but it feels like cheating. Is there any fix on the horizon for this? Is the scheduler going to be reimplemented any time soon?

Thanks,
Mike

Re: can't set max_upload_speed to unlimited

Posted: Thu Sep 10, 2009 10:38 pm
by andar
mmand wrote:Hey there. I'm sorry to revive this months-old topic, but I recently found the above-mentioned Wiki article on making a cron job to act as scheduler.

I too wanted to set my upload/download limits to unlimited but nothing worked. After finding this, I can say that using 0.0 does work, but it feels like cheating. Is there any fix on the horizon for this? Is the scheduler going to be reimplemented any time soon?

Thanks,
Mike
The scheduler has been ported to trunk and will appear in 1.2.0.