aboutsummaryrefslogtreecommitdiff
path: root/libvirt-mem
diff options
context:
space:
mode:
authorGuido G√ľnther <agx@sigxcpu.org>2008-10-23 13:38:23 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-10-23 13:38:55 +0200
commitd395302d1a1ca0b35b662b014238ebe1fccdf025 (patch)
tree11dfd87a17d6229b392f62bcbb0054afa1230236 /libvirt-mem
parent89266d9b5640607d53b414df73b8f7be4b6f1226 (diff)
fix bad variable name
Diffstat (limited to 'libvirt-mem')
-rw-r--r--libvirt-mem8
1 files changed, 4 insertions, 4 deletions
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