can't set max_upload_speed to unlimited

General support for problems installing or using Deluge
Post Reply
zifnab
New User
New User
Posts: 3
Joined: Mon May 25, 2009 9:05 pm

can't set max_upload_speed to unlimited

Post 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
loki
Moderator
Moderator
Posts: 787
Joined: Tue Dec 04, 2007 3:27 pm
Location: MI, USA

Re: can't set max_upload_speed to unlimited

Post by loki »

hmm, does it work if you put it in parenthesis? (-1)
zifnab
New User
New User
Posts: 3
Joined: Mon May 25, 2009 9:05 pm

Re: can't set max_upload_speed to unlimited

Post 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.
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: can't set max_upload_speed to unlimited

Post by andar »

Setting it to 0.0 should accomplish the same thing.. I'll have to look into this for the new console ui..
zifnab
New User
New User
Posts: 3
Joined: Mon May 25, 2009 9:05 pm

Re: can't set max_upload_speed to unlimited

Post by zifnab »

Thanks, 0.0 worked.
bonfire89

Re: can't set max_upload_speed to unlimited

Post 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!
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: can't set max_upload_speed to unlimited

Post 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.
bonfire89

Re: can't set max_upload_speed to unlimited

Post by bonfire89 »

oh cool, Thank you.
mmand

Re: can't set max_upload_speed to unlimited

Post 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
andar
Top Bloke
Top Bloke
Posts: 1050
Joined: Fri Jun 08, 2007 8:38 pm
Location: Victoria, BC
Contact:

Re: can't set max_upload_speed to unlimited

Post 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.
Post Reply