From 848b4fbd2590fdb85602f940bc179c66a7e25a31 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 31 Oct 2008 11:30:28 +0100 Subject: exclude Dom0 from cputime graph it's only confusing compared to other hypervisors --- libvirt-cputime | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libvirt-cputime') diff --git a/libvirt-cputime b/libvirt-cputime index 6693602..9684cdc 100644 --- a/libvirt-cputime +++ b/libvirt-cputime @@ -46,6 +46,8 @@ total_pc.critical 95""" except libvirt.libvirtError, err: print >>sys.stderr, "Id: %s: %s" % (id, err) continue + if name == "Domain-0": + continue print "%s_cputime.label %s" % (canon(name), name) print "%s_cputime.type DERIVE" % canon(name) print "%s_cputime.min 0" % canon(name) @@ -66,6 +68,8 @@ def fetch_values(uri): except libvirt.libvirtError, err: print >>sys.stderr, "Id: %s: %s" % (id, err) continue + if name == "Domain-0": + continue cputime = float(dom.info()[4]) cputime_percentage = 1.0e-7 * cputime / processors total += cputime_percentage -- cgit v1.2.3