Found and repaired the off-by-one error in rrd_fetch_fn().
As a result I had to remove the hacks in rrd_fetch_fn(),
rrd_tool.c, vdef_calc(), data_calc(), data_proc() and
reduce_data(). There may be other places which I didn't
find so be careful.
Enhanced debugging in rrd_fetch_fn(), it shows the RRA selection
process.
Added the ability to print VDEF timestamps. At the moment it
is a hack, I needed it now to fix the off-by-one error.
If the format string is "%c" (and nothing else!), the time
will be printed by both ctime() and as a long int.
Moved some code around (slightly altering it) from rrd_graph()
initializing now in rrd_graph_init()
options parsing now in rrd_graph_options()
script parsing now in rrd_graph_script()
Jake Brutlag [Wed, 22 Aug 2001 22:29:07 +0000 (22:29 +0000)]
Contents of this patch:
(1) Adds/revises documentation for rrd tune in rrd_tool.c and pod files.
(2) Moves some initialization code from rrd_create.c to rrd_hw.c.
(3) Adds another pass to smoothing for SEASONAL and DEVSEASONAL RRAs.
This pass computes the coefficients as deviations from an average; the
average is added the baseline coefficient of HWPREDICT. Statistical texts
suggest this to preserve algorithm stability. It will not invalidate
RRD files created and smoothed with the old code.
(4) Adds the aberrant-reset flag to rrd tune. This operation, which is
specified for a single data source, causes the holt-winters algorithm to
forget everthing it has learned and start over.
(5) Fixes a few out-of-date code comments.
Edited Makefile.am and the rrdgraph_*.src files. By mistake the
previous update was made on the rrdgraph_*.pod files however they
are not to be edited. This is now corrected.
Supporting functions for rrd_graph. Functions that are used frequently
and/or from different places should be added here in stead of repeating
them in rrd_graph.c over and over again.
Tobias Oetiker [Wed, 9 May 2001 05:31:01 +0000 (05:31 +0000)]
Bug fix: when update of multiple PDP/CDP RRAs coincided
with interpolation of multiple PDPs an incorrect value was
stored as the CDP. Especially evident for GAUGE data sources.
Minor changes to rrdcreate.pod. -- Jake Brutlag <jakeb@corp.webtv.net>
Tobias Oetiker [Sat, 10 Mar 2001 23:54:41 +0000 (23:54 +0000)]
Support for COMPUTE data sources (CDEF data sources). Removes the RPN
parser and calculator from rrd_graph and puts then in a new file,
rrd_rpncalc.c. Changes to core files rrd_create and rrd_update. Some
clean-up of aberrant behavior stuff, including a bug fix.
Documentation update (rrdcreate.pod, rrdupdate.pod). Change xml format.
-- Jake Brutlag <jakeb@corp.webtv.net>
Tobias Oetiker [Wed, 7 Mar 2001 21:21:54 +0000 (21:21 +0000)]
complete rewrite of rrdgraph documentation. This also includs info
on upcomming/planned changes to the rrdgraph interface and functionality
-- Alex van den Bogaerdt <alex@slot.hollandcasino.nl>
Tobias Oetiker [Sun, 4 Mar 2001 13:01:56 +0000 (13:01 +0000)]
Aberrant Behavior Detection support. A brief overview added to rrdtool.pod.
Major updates to rrd_update.c, rrd_create.c. Minor update to other core files.
This is backwards compatible! But new files using the Aberrant stuff are not readable
by old rrdtool versions. See http://cricket.sourceforge.net/aberrant/rrd_hw.htm
-- Jake Brutlag <jakeb@corp.webtv.net>