From d395302d1a1ca0b35b662b014238ebe1fccdf025 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 23 Oct 2008 13:38:23 +0200 Subject: fix bad variable name --- libvirt-mem | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libvirt-mem') diff --git a/libvirt-mem b/libvirt-mem index 151d614..950cd60 100644 --- a/libvirt-mem +++ b/libvirt-mem @@ -35,16 +35,16 @@ graph_args --base 1024 -l 0""" return 1 ids = conn.listDomainsID() - type = "AREA" + draw = "AREA" for id in ids: dom = conn.lookupByID(id) name = dom.name() print "%s_mem.label %s" % (canon(name), name) print "%s_mem.type GAUGE" % canon(name) print "%s_mem.min 0" % canon(name) - print "%s_mem.draw %s" % (canon(name), type) - if type == "AREA": - type = "STACK" + print "%s_mem.draw %s" % (canon(name), draw) + if draw == "AREA": + draw = "STACK" hostname = conn.getHostname() print "host_mem.label %s (host)" % hostname -- cgit v1.2.3