head 1.4; access; symbols pkgsrc-2014Q2:1.3.0.30 pkgsrc-2014Q2-base:1.3 pkgsrc-2014Q1:1.3.0.28 pkgsrc-2014Q1-base:1.3 pkgsrc-2013Q4:1.3.0.26 pkgsrc-2013Q4-base:1.3 pkgsrc-2013Q3:1.3.0.24 pkgsrc-2013Q3-base:1.3 pkgsrc-2013Q2:1.3.0.22 pkgsrc-2013Q2-base:1.3 pkgsrc-2013Q1:1.3.0.20 pkgsrc-2013Q1-base:1.3 pkgsrc-2012Q4:1.3.0.18 pkgsrc-2012Q4-base:1.3 pkgsrc-2012Q3:1.3.0.16 pkgsrc-2012Q3-base:1.3 pkgsrc-2012Q2:1.3.0.14 pkgsrc-2012Q2-base:1.3 pkgsrc-2012Q1:1.3.0.12 pkgsrc-2012Q1-base:1.3 pkgsrc-2011Q4:1.3.0.10 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q3:1.3.0.8 pkgsrc-2011Q3-base:1.3 pkgsrc-2011Q2:1.3.0.6 pkgsrc-2011Q2-base:1.3 pkgsrc-2011Q1:1.3.0.4 pkgsrc-2011Q1-base:1.3 pkgsrc-2010Q4:1.3.0.2 pkgsrc-2010Q4-base:1.3 pkgsrc-2010Q3:1.2.0.2 pkgsrc-2010Q3-base:1.2 pkgsrc-2010Q2:1.1.0.4 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.2 pkgsrc-2010Q1-base:1.1; locks; strict; comment @# @; 1.4 date 2014.08.24.07.06.02; author adam; state dead; branches; next 1.3; commitid tqMA3n6m0QrMdANx; 1.3 date 2011.01.05.18.12.39; author kefren; state Exp; branches; next 1.2; 1.2 date 2010.07.06.07.31.20; author adam; state Exp; branches; next 1.1; 1.1 date 2010.03.13.16.41.21; author spz; state Exp; branches; next ; desc @@ 1.4 log @Changes 1.4.8: * rrd_graph now uses a map to lookup variable names causing graphs with many items to be drawn magnitudes faster as the linear search of the variable tables is gone now. * the optional argument :skipscale allows for a LINE or AREA instruction to be excluded from having an effect on the scaling of the graph * TRENDNAN is now working properly and als not crashing anymore * Added a no-op string positioning combo "\." this allows to write COMMENT:OS\2\. which would otherwise not be possible. * JSON output of xport is now actually json compilant by its keys being properly quoted now. * The label positioner in rrd_graph is now properly ignoring the current state of DST. * fixes and enhancements for Python, Ruby, TCL and Perl bindings * improved error reporting in rrd_graph * portability and cross compilation @ text @$NetBSD: patch-az,v 1.3 2011/01/05 18:12:39 kefren Exp $ --- src/rrd_daemon.c.orig 2010-12-21 18:06:32.000000000 +0200 +++ src/rrd_daemon.c 2011-01-05 18:10:33.000000000 +0200 @@@@ -113,7 +113,7 @@@@ #include #endif /* HAVE_LIBWRAP */ -#include +#include /* }}} */ #define RRDD_LOG(severity, ...) \ @ 1.3 log @Update to 1.4.5 Bugfixes: * rrdcached: print \n at the end of log messages when running rrdcached in the foreground -- Bernard Li * rrdcached: Let the -s, -m and -P options affect the default socket as well -- Sebastian Harl * rrdgraph: font related memory leaks fixed #208 -- tobi * rrdgraph-libdbi: print error message instead of dumping core on sql problem -- Pavel Nikiforov * rrdgraph-libdbi: properly allocated response buffer -- Pavel Nikiforov * rrdtool: in remote mode, make argument count for remote commmands strict -- Dave Peticolas * rrdgraph: fix problems with second %s in right-axis format -- tobi * and many more: for full changelog http://oss.oetiker.ch/rrdtool/pub/CHANGES Enhancements: * rrdcached: add hosts_access support added -- Shaun Reitan * rrdfetch/graph: introduce "epoch" as a new base time reference, meaning timestamp 0: you can now write epoch+11111111s or epoch+19711205s -- Peter Stamfest @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Changes 1.4.4: Bugfixes: * compile: multiple fixes isnan and isinf defines to make rrdtool compile with gcc on solaris (with --disable-nls) * handle gettext/libintl like any other feature, do not try to supply our own ... rrdtool can work fine without it * rrd_client: fix potential segfaults * rrd_client: resolve synmlinks properly * compile: fix libtool and libtoolize names for OSX compiles * compile: fix for HAVE_BROKEN_MS_ASYNC (old linux kernels) * rrd_xport: fix --daemon handling * rrd_client: explicitly close connection on error * rrd_update: fix memory leak for COMPUTE datasources * rrd_daemon: fix segfault when specifying a relative path (-j option) * compile: make rrdtool compile with gcc 4.5 * portability: use %lld (long long int) for time_t *printf * compile: link pangocairo and not pango since we do use pangocairo actually * compile: re-integrate intl into compile dependency so that hosts with old (or no) gettext can get access to the included copy. * rrd_cached: exit with status !=0 on invalid cli Enhancements: * updated build files and instructions for win32 port by Chris Larsen * legal: Relicense the RRDCacheD client interface under the MIT license * legal: Updted FLOSS Exception for latest PHP license * rrd_cached: better help output @ text @d3 5 a7 5 --- src/rrd_daemon.c.orig 2010-07-06 07:12:11.000000000 +0000 +++ src/rrd_daemon.c @@@@ -109,7 +109,7 @@@@ #include #include @ 1.1 log @make "rrdtool restore" work on archs where time_t is an int @ text @d3 11 a13 27 --- src/rrd_restore.c.orig 2009-10-24 10:46:42.000000000 +0000 +++ src/rrd_restore.c @@@@ -966,10 +966,20 @@@@ static int parse_tag_rrd( else { if (sizeof(time_t) == sizeof(long long)) { status = get_llong_from_node(doc, child, (long long *)&rrd->live_head->last_up); } - else { - rrd_set_error("can't convert to time_t ...", child->name); - status = -1; - } + else if (sizeof(time_t) == sizeof(int)) { + long temp_last_up; + status = get_long_from_node(doc, child, &temp_last_up); + if (temp_last_up < INT_MAX) + rrd->live_head->last_up = temp_last_up; + else { + rrd_set_error("can't convert to time_t ...", child->name); + status = -1; + } + } + else { + rrd_set_error("can't convert to time_t ...", child->name); + status = -1; + } } } else if (xmlStrcmp(child->name, (const xmlChar *) "ds") == 0) @