mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-26 01:55:15 +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:
|
try:
|
||||||
ret = float(up/down)
|
ret = float(up/down)
|
||||||
except:
|
except:
|
||||||
ret = -1
|
ret = 0
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user