Karaage-Cluster/karaage — Issue #107: Can't view usage for a single day
Author: sorrison
Created: 2012-02-15 22:53:45+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 70, in index
available_time, avg_cpus = get_available_time(start, end, machine_category)

File "/usr/lib/pymodules/python2.6/karaage/util/helpers.py", line 91, in get_available_time
return total, get_ave_cpus(start, end, machine_category)

File "/usr/lib/pymodules/python2.6/karaage/util/helpers.py", line 117, in get_ave_cpus
return cpus / (end-start).days

ZeroDivisionError: float division

,