From 157a18c2445286755758ef5a6ebee334a4a0694c Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Thu, 16 Sep 2010 18:47:05 +0200 Subject: [PATCH] qubes.py: a small fix to QubesHost --- dom0/qvm-core/qubes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index e2b6db3a..0e693d79 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -118,7 +118,7 @@ class QubesHost(object): self.host_record = xend_session.session.xenapi.host.get_record(self.hosts[0]) self.host_metrics_record = xend_session.session.xenapi.host_metrics.get_record(self.host_record["metrics"]) - self.xen_total_mem = self.host_metrics_record["memory_total"] + self.xen_total_mem = int(self.host_metrics_record["memory_total"]) self.xen_no_cpus = len (self.host_record["host_CPUs"]) # print "QubesHost: total_mem = {0}B".format (self.xen_total_mem)