mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-06 00:23:32 +00:00
have calc_ratio return 0 on exception instead of -1
This commit is contained in:
parent
a40b8e4d50
commit
c1d3d7ea81
@ -723,7 +723,7 @@ class Manager:
|
||||
try:
|
||||
ret = float(up/down)
|
||||
except:
|
||||
ret = -1
|
||||
ret = 0
|
||||
|
||||
return ret
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user