From: Zooko O'Whielacronx Date: Wed, 29 Nov 2006 18:42:07 +0000 (-0700) Subject: fix bug in simulator graphing (still doesn't work though) X-Git-Tag: tahoe_v0.1.0-0-UNSTABLE~548 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/quickstart.html?a=commitdiff_plain;h=63113929fbe206e8f89a0c79ae59bb087ff587b1;p=tahoe-lafs%2Ftahoe-lafs.git fix bug in simulator graphing (still doesn't work though) --- diff --git a/simulator.py b/simulator.py index 605bd4c3..81ad3418 100644 --- a/simulator.py +++ b/simulator.py @@ -195,11 +195,11 @@ class Simulator: import gc gc.collect() - def1 = graph.DataDefinition(vname='uvn', rrdfile='/tmp/utilization.rrd', ds_name='utilizationds') - area1 = graph.Area(value=def1.vname, color="#990033", legend='utilizationlegend') + def1 = graph.DataDefinition(vname="a", rrdfile='/tmp/utilization.rrd', ds_name='utilizationds') + area1 = graph.Area(value="a", color="#990033", legend='utilizationlegend') g = graph.Graph('/tmp/utilization.png', imgformat='PNG', width=540, height=100, vertical_label='utilizationverticallabel', title='utilizationtitle', lower_limit=0) - g.data.append(area1) g.data.append(def1) + g.data.append(area1) g.write() def add_file(self):