Hi
I am trying to cycle through values i fetch from an rrd file with a python script and this is the code i have
Here is the result i get
(43.0,)
(46.0,)
(69.0,)
(41.0,)
(51.0,)
(62.0,)
(55.0,)
But i am trying to extract the values one at a time out of the brackets and use them in making a comparison.
I will appreciate your help very much.
Thanks
I am trying to cycle through values i fetch from an rrd file with a python script and this is the code i have
Code:
output = rrdtool.fetch("mutime.rrd", 'AVERAGE')
trmaxTuples = output[2]
n = len(trmaxTuples)
for n in trmaxTuples:
if (trmaxTuples > 100):
print n
else:
print "0"
(43.0,)
(46.0,)
(69.0,)
(41.0,)
(51.0,)
(62.0,)
(55.0,)
But i am trying to extract the values one at a time out of the brackets and use them in making a comparison.
I will appreciate your help very much.
Thanks
Comment