1 Jun 2009 12:40
Re: rrdtool: update fails on negative timestamp
Sebastian Harl <sh <at> tokkee.org>
2009-06-01 10:40:55 GMT
2009-06-01 10:40:55 GMT
Hi Tobi, On Fri, Apr 10, 2009 at 09:57:30PM +0200, Tobias Oetiker wrote: > Today Sebastian Harl wrote: > > On Tue, Apr 07, 2009 at 10:11:57PM +0200, Sebastian Harl wrote: > > > On Tue, Apr 07, 2009 at 07:35:30PM +0200, Tobias Oetiker wrote: > > > > Today Sebastian Harl wrote: > > > > > $ rrdtool update file.rrd -t ds -- -5:42 && date > > > > > ERROR: file.rrd: illegal attempt to update using time -5 when last update > > > > > time is 1239115940 (minimum one second step) > > > > > 1239116951 > > > > > > > > > > Apparently, this feature got lost somewhere on the way. [...] > > The rrdupdate(1) manpage states the following: > > > > N|timestamp:value[:value...] > > > > The data used for updating the RRD was acquired at a certain time. > > This time can either be defined in seconds since 1970-01-01 or by > > using the letter ?N?, in which case the update time is set to be the > > current time. Negative time values are subtracted from the current > > time. [...] > > > > So, I'd expect the following to happen: > > > > When using N:<values>, RRDtool calls time() to get the current time (in > > seconds since the epoch) and uses that as timestamp when storing the > > values. That works fine. > >(Continue reading)
RSS Feed