[rrd-developers] [PATCH] rrdupdate(1): Mention that negative time values should be separated by '--'.

Sebastian Harl sh at tokkee.org
Tue Jun 2 12:54:46 CEST 2009


---
 program/doc/rrdupdate.pod |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/program/doc/rrdupdate.pod b/program/doc/rrdupdate.pod
index cc0b452..49eb8fe 100644
--- a/program/doc/rrdupdate.pod
+++ b/program/doc/rrdupdate.pod
@@ -5,7 +5,7 @@ rrdupdate - Store a new set of values into the RRD
 =head1 SYNOPSIS
 
 B<rrdtool> {B<update> | B<updatev>} I<filename>
-S<[B<--template>|B<-t> I<ds-name>[B<:>I<ds-name>]...]>
+S<[B<--template>|B<-t> I<ds-name>[B<:>I<ds-name>]...]> [B<-->]
 S<B<N>|I<timestamp>B<:>I<value>[B<:>I<value>...]>
 S<I<at-timestamp>B<@>I<value>[B<:>I<value>...]>
 S<[I<timestamp>B<:>I<value>[B<:>I<value>...] ...]>
@@ -69,6 +69,10 @@ timing right to the second is especially important when you are
 working with data-sources of type B<COUNTER>, B<DERIVE> or
 B<ABSOLUTE>.
 
+When using negative time values, options and data have to be separated
+by two dashes (B<-->), else the time value would be parsed as an option.
+See below for an example.
+
 The remaining elements of the argument are DS updates. The order of
 this list is the same as the order the data sources were defined in
 the RRA. If there is no data for a certain data-source, the letter
@@ -95,6 +99,11 @@ Update the database file demo2.rrd which expects data from a single
 data-source, three times. First with an I<*UNKNOWN*> value then with two
 regular readings. The update interval seems to be around 300 seconds.
 
+C<rrdtool update demo3.rrd -- -5:21 N:42>
+
+Update the database file demo3.rrd two times, using five seconds in the
+past and the current time as the update times.
+
 =head1 AUTHOR
 
 Tobias Oetiker <tobi at oetiker.ch>
-- 
1.5.6.5

-------------- 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/20090602/d661fc25/attachment-0001.bin 


More information about the rrd-developers mailing list