From 842dfb70942d22b196638f7c64ea194e88e1e488 Mon Sep 17 00:00:00 2001 From: Peter Stamfest Date: Thu, 4 Sep 2014 08:50:42 +0200 Subject: [PATCH] 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 --- src/rrd_daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2