From 74f36a33b7c685f0da22ba51ccd7346ac1353a9c Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 29 Apr 2003 19:14:12 +0000 Subject: [PATCH] Change updatev RRA return from index_number to cf_nam, pdp_cnt. Also revert accidental addition of -I to aclocal MakeMakefile. git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@203 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/MakeMakefile | 2 +- program/doc/rrdupdate.pod | 6 +++--- program/src/rrd_update.c | 9 +++++++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/program/MakeMakefile b/program/MakeMakefile index 8b311faa..28c62ed9 100755 --- a/program/MakeMakefile +++ b/program/MakeMakefile @@ -47,7 +47,7 @@ cp ltmain.sh config # If autoconf generates undefined MACRO errors, it may be unable # to find libtool.m4. Add the -I flag to aclocal to specify the # directory location of this file. -aclocal -I $HOME/libtool/share/aclocal +aclocal autoheader --warnings=all automake-1.7 --foreign --add-missing --force-missing --copy diff --git a/program/doc/rrdupdate.pod b/program/doc/rrdupdate.pod index 394c49cb..d10846f9 100644 --- a/program/doc/rrdupdate.pod +++ b/program/doc/rrdupdate.pod @@ -27,9 +27,9 @@ performs the same function. The I stands for I, which describes the output returned. B returns a list of any and all consolidated data points (CDPs) written to disk as a result of the invocation of update. The values are indexed by timestamp (time_t), -RRA (index number), and data source (name). Note that depending -on the arguments of the current and previous call to update, the -list may have no entries or a large number of entries. +RRA (consolidation function and PDPs per CDP), and data source (name). +Note that depending on the arguments of the current and previous call to +update, the list may have no entries or a large number of entries. =item I diff --git a/program/src/rrd_update.c b/program/src/rrd_update.c index 9e8063e3..e9c75475 100644 --- a/program/src/rrd_update.c +++ b/program/src/rrd_update.c @@ -5,6 +5,10 @@ ***************************************************************************** * $Id$ * $Log$ + * Revision 1.10 2003/04/29 19:14:12 jake + * Change updatev RRA return from index_number to cf_nam, pdp_cnt. + * Also revert accidental addition of -I to aclocal MakeMakefile. + * * Revision 1.9 2003/04/25 18:35:08 jake * Alternate update interface, updatev. Returns info about CDPs written to disk as result of update. Output format is similar to rrd_info, a hash of key-values. * @@ -1441,8 +1445,9 @@ info_t iv.u_val = rrd -> cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val; /* append info to the return hash */ pcdp_summary = info_push(pcdp_summary, - sprintf_alloc("[%d]RRA[%lu]DS[%s]", - *rra_time, rra_idx, rrd->ds_def[ds_idx].ds_nam), + sprintf_alloc("[%d]RRA[%s][%lu]DS[%s]", + *rra_time, rrd->rra_def[rra_idx].cf_nam, + rrd->rra_def[rra_idx].pdp_cnt, rrd->ds_def[ds_idx].ds_nam), RD_I_VAL, iv); } if(fwrite(&(rrd -> cdp_prep[cdp_idx].scratch[CDP_scratch_idx].u_val), -- 2.30.2