Karaage-Cluster/karaage — Issue #111: MC with no machines
Author: sorrison
Created: 2012-02-15 22:53:58+00:00
State: open

Traceback (most recent call last):

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 100, in get_response
response = callback(request, *callback_args, **callback_kwargs)

File "/usr/lib/pymodules/python2.6/karaage/usage/views.py", line 127, in index
utilization = (Decimal(total) / available_time) * 100

File "/usr/lib/python2.6/decimal.py", line 1247, in __truediv__
return context._raise_error(DivisionUndefined, '0 / 0')

File "/usr/lib/python2.6/decimal.py", line 3778, in _raise_error
raise error(explanation)

InvalidOperation: 0 / 0