mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 19:44:52 +00:00
have calc_ratio return 0 on exception instead of -1
This commit is contained in:
parent
a40b8e4d50
commit
c1d3d7ea81
1 changed files with 1 additions and 1 deletions
|
@ -723,7 +723,7 @@ class Manager:
|
|||
try:
|
||||
ret = float(up/down)
|
||||
except:
|
||||
ret = -1
|
||||
ret = 0
|
||||
|
||||
return ret
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue