projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0893587
)
rrdcached plugin: Inline time conversion.
author
Florian Forster
<octo@collectd.org>
Tue, 19 Feb 2019 19:25:16 +0000
(20:25 +0100)
committer
Florian Forster
<octo@collectd.org>
Wed, 20 Feb 2019 08:22:57 +0000
(09:22 +0100)
src/rrdcached.c
patch
|
blob
|
history
diff --git
a/src/rrdcached.c
b/src/rrdcached.c
index
a6a4f8f
..
9aeb71a
100644
(file)
--- 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;