[rrd-developers] rrdtool: update fails on negative timestamp
Tobias Oetiker
tobi at oetiker.ch
Tue Apr 7 19:35:30 CEST 2009
Sebastian,
hmmm I didn't know of this 'feature' what time would '-5:42' be ?
cheers
tobi
Today Sebastian Harl wrote:
> tags 332766 + upstream
> thanks
>
> Hi,
>
> (This is a follow-up to Debian bug #332766. See [1] for more details.)
>
> [1] http://bugs.debian.org/332766
>
> On Sat, Oct 08, 2005 at 03:14:15PM +0200, Frank Zacharias wrote:
> > rrdupdate(1) states: "Negative time values are subtracted from the current time." But if i try:
> >
> > $> rrdtool update filename.rrd -t dsname -timstamp:U
> >
> > it fails with: "ERROR: unknown option 'filename.rrd'". The timestamp is
> > in `date +%s'-format.
>
> Well, since '-' marks the beginning of an option, you'd need to separate
> options and timestamp/value-list tuples using '--' in this case. However, as
> of version 1.3.5, this does not work either:
>
> $ 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. With this message,
> I've forwarded the bug the upstream developers mailing list, hoping for a
> comment.
>
> Cheers,
> Sebastian
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-developers
mailing list