deplorableword/sd-varnish — Issue #3: ZeroDivision error gentoo
Author: pigri
Created: 2011-10-15 18:59:33+00:00
State: open

ERROR - getPlugins: exception = Traceback (most recent call last):
File "/usr/local/bin/sd-agent/checks.py", line 2282, in getPlugins
output[plugin.__class__.__name__] = plugin.run()
File "/usr/local/bin/sd-agent/plugins/Varnish.py", line 53, in run
hit_percent = round(((float(hits) + float(hits_pass)) / (float(hits) + float(miss) + float(hits_pass))) * 100, 1)
ZeroDivisionError: float division by zero

python 2.7