details: stats: Report if memory polling is disabled

This commit is contained in:
Cole Robinson 2014-02-10 15:13:31 -05:00
parent a411a98cc7
commit 94b7c124f6
1 changed files with 5 additions and 4 deletions

View File

@ -2500,10 +2500,11 @@ class vmmDetails(vmmGObjectUI):
cpu_txt = "%d %%" % self.vm.guest_cpu_time_percentage()
cur_vm_memory = self.vm.stats_memory()
vm_memory = self.vm.maximum_memory()
mem_txt = "%s of %s" % (util.pretty_mem(cur_vm_memory),
util.pretty_mem(vm_memory))
if self.config.get_stats_enable_memory_poll():
cur_vm_memory = self.vm.stats_memory()
vm_memory = self.vm.maximum_memory()
mem_txt = "%s of %s" % (util.pretty_mem(cur_vm_memory),
util.pretty_mem(vm_memory))
if self.config.get_stats_enable_disk_poll():
dsk_txt = _dsk_rx_tx_text(self.vm.disk_read_rate(),