From: Florian Forster Date: Tue, 19 Feb 2019 19:25:16 +0000 (+0100) Subject: rrdcached plugin: Inline time conversion. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=08dccf0cbf19955e9849ba0f72a11f4eede28f8a;p=collectd.git rrdcached plugin: Inline time conversion. --- diff --git a/src/rrdcached.c b/src/rrdcached.c index a6a4f8fd..9aeb71a5 100644 --- a/src/rrdcached.c +++ b/src/rrdcached.c @@ -66,8 +66,8 @@ 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, "%.6f", t); + int status = + snprintf(buffer, buffer_len, "%.6f", CDTIME_T_TO_DOUBLE(vl->time)); if ((status < 1) || (status >= buffer_len)) return -1; int offset = status;