From: Brian ONeill Date: Mon, 11 Feb 2019 17:17:24 +0000 (-0500) Subject: rrdcached plugin: fixed issue with typing X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=08935871208702aca88caf6a3ce36b75a47d900f;p=collectd.git rrdcached plugin: fixed issue with typing --- diff --git a/src/rrdcached.c b/src/rrdcached.c index d2547146..a6a4f8fd 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -67,7 +67,7 @@ static int value_list_to_string(char *buffer, int buffer_len, memset(buffer, '\0', buffer_len); double t = CDTIME_T_TO_DOUBLE(vl->time); - int status = snprintf(buffer, buffer_len, "%f", t); + int status = snprintf(buffer, buffer_len, "%.6f", t); if ((status < 1) || (status >= buffer_len)) return -1; int offset = status;