have calc_ratio return 0 on exception instead of -1

This commit is contained in:
Andrew Resch 2007-06-08 08:55:05 +00:00
parent a40b8e4d50
commit c1d3d7ea81
1 changed files with 1 additions and 1 deletions

View File

@ -723,7 +723,7 @@ class Manager:
try:
ret = float(up/down)
except:
ret = -1
ret = 0
return ret