Converted host characteristics from long to int

This commit is contained in:
Anton Beloglazov 2012-10-02 15:50:39 +10:00
parent 868af9410c
commit d8a1510e4e

View File

@ -163,6 +163,6 @@ class Database(object):
hosts_ram = {}
for x in self.hosts.select().execute().fetchall():
hostname = str(x[1])
hosts_cpu[hostname] = x[2]
hosts_ram[hostname] = x[3]
hosts_cpu[hostname] = int(x[2])
hosts_ram[hostname] = int(x[3])
return hosts_cpu, hosts_ram