Karaage-Cluster/karaage — Issue #98: institute usage
Author: sorrison
Created: 2012-02-15 22:53:15+00:00
State: open

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 165, in institute_usage
percent = (chunk.get_mpots()/chunk.get_cap())*100

File "/usr/lib/pymodules/python2.6/karaage/pbsmoab/models.py", line 70, in get_mpots
return ((usage / total_time) * 100 * 1000).quantize(TWOPLACES)

AttributeError: 'long' object has no attribute 'quantize'