[rrd-users] Re: rrdtool fetch return values

Tobias Oetiker oetiker at ee.ethz.ch
Tue Mar 14 12:07:50 MET 2000


Today you sent me mail regarding [rrd-users] rrdtool fetch return values:

*> When I fetch values using the following code:
*> 
*> my ($time,$step,$names,$data) = RRDs::fetch($filePath,"AVERAGE",
*>        "--start","now",
*>        "--end","now");
*> 
*> Two data points are returned:
*> 
*> Start:       Tue Mar 14 09:00:00 2000 (953020800)
*> Step size:   300 seconds
*> DS names:    ds0, ds1, ds2, ds3, ds4, ds5
*> Data points: 2
*> Tue Mar 14 09:00:00 2000 (953020800) av=6178.09084612431
*> Tue Mar 14 09:05:00 2000 (953021100) av=NaN
*> 
*> Will fetch always return an extra NaN data point? I'm thinking about future
*> versions of RRDtool. Also what about when I use other values for --start and
*> --end?
*> 
*> If the NaN is always present as the last data point , I'll just throw it away.

no only if there is No data for this point in time ... 

cheers
tobi

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker, Timelord & SysMgr @ EE-Dept ETH-Zurich
 / // _ \/ _ \/ / TEL: +41(0)1-6325286  FAX:...1517  ICQ: 10419518 
/_/ \.__/_.__/_/ oetiker at ee.ethz.ch http://ee-staff.ethz.ch/~oetiker

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users



More information about the rrd-users mailing list