projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a10fb16
)
rrdcached plugin: fixed issue with typing
author
Brian ONeill
<btoneill@walleyesoftware.com>
Mon, 11 Feb 2019 17:17:24 +0000
(12:17 -0500)
committer
Florian Forster
<octo@collectd.org>
Wed, 20 Feb 2019 08:21:22 +0000
(09:21 +0100)
src/rrdcached.c
patch
|
blob
|
history
diff --git
a/src/rrdcached.c
b/src/rrdcached.c
index
d254714
..
a6a4f8f
100644
(file)
--- 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, "%
.6
f", t);
if ((status < 1) || (status >= buffer_len))
return -1;
int offset = status;