The type of cpu_mhz: long -> int

This commit is contained in:
Anton Beloglazov 2012-09-28 17:59:15 +10:00
parent d272f9ad66
commit 2473c68df9

View File

@ -62,7 +62,7 @@ class Database(object):
order_by(self.vm_resource_usage.c.id.asc()). \
limit(n)
res = self.connection.execute(sel).fetchall()
return [x[0] for x in res]
return [int(x[0]) for x in res]
@contract
def select_last_cpu_mhz_for_vms(self):