From: Peter Stamfest Date: Thu, 4 Sep 2014 06:50:42 +0000 (+0200) Subject: fetch data from cached with full double precision to make sure results X-Git-Tag: v1.5.0-rc1~44^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F534%2Fhead;p=thirdparty%2Frrdtool-1.x.git fetch data from cached with full double precision to make sure results obtained with and without rrdcached are the same. This might be deemed to high a cost, because the line protocol now carries up to 70% more data --- diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 6ff84003..0f7451d7 100644 --- a/src/rrd_daemon.c +++ b/src/rrd_daemon.c @@ -1735,7 +1735,7 @@ static int handle_request_fetch (HANDLER_PROTO) /* {{{ */ linebuf_fill = 0; for (i = 0; i < ds_cnt; i++) { - snprintf (tmp, sizeof (tmp), " %0.10e", *data_ptr); + snprintf (tmp, sizeof (tmp), " %0.17e", *data_ptr); tmp[sizeof (tmp) - 1] = 0; SSTRCAT (linebuf, tmp, linebuf_fill);