]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
fetch data from cached with full double precision to make sure results 534/head
authorPeter Stamfest <peter@stamfest.at>
Thu, 4 Sep 2014 06:50:42 +0000 (08:50 +0200)
committerPeter Stamfest <peter@stamfest.at>
Thu, 4 Sep 2014 08:18:22 +0000 (10:18 +0200)
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

src/rrd_daemon.c

index 6ff840033eda8d96f19d75d900595cd718c0f933..0f7451d71190528b68ceecfe694bedab9b9d2a3b 100644 (file)
@@ -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);