From 94b7c124f668a3d2c162aa2a46067aa9e031d738 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Mon, 10 Feb 2014 15:13:31 -0500 Subject: [PATCH] details: stats: Report if memory polling is disabled --- virtManager/details.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/virtManager/details.py b/virtManager/details.py index 5143ba35c..2a8e5e530 100644 --- a/virtManager/details.py +++ b/virtManager/details.py @@ -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(),