index db24903f5513785852a22748f05de88b1a4b0f91..7d6c30b68ff236d6b59dc417fce56706fe63dde0 100644 (file)
/* Current versions of RRDtool do not support multiple RRDCacheD client
* connections. Use this to guard against multiple configured RRDCacheD
* instances. */
-static _Bool rrdcached_in_use = 0;
+static bool rrdcached_in_use = 0;
/*
* plugin API
rrd_freemem(data); \
} while (0)
+ /* limit to about 1000 data-points for now
+ * TODO: make this configurable */
+ step = (end - start) / 1000;
+
if (rrd_fetch_r(id, "AVERAGE", &start, &end, &step,
&ds_cnt, &ds_namv, &data)) {
char errbuf[1024];