[rrd-developers] rrdtool: update fails on negative timestamp

Sebastian Harl sh at tokkee.org
Tue Apr 7 17:11:51 CEST 2009


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

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.oetiker.ch/pipermail/rrd-developers/attachments/20090407/3fdb09f9/attachment.bin 


More information about the rrd-developers mailing list