projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c31c87
)
write_graphite plugin: Print the time as an unsigned int.
author
Florian Forster
<octo@collectd.org>
Thu, 9 Feb 2012 09:46:21 +0000
(10:46 +0100)
committer
Florian Forster
<octo@collectd.org>
Thu, 9 Feb 2012 09:46:21 +0000
(10:46 +0100)
Change-Id: I61f4952c8debdf7c80c4e1e4647cf42ecf00f033
src/write_graphite.c
patch
|
blob
|
history
diff --git
a/src/write_graphite.c
b/src/write_graphite.c
index
2d61cac
..
857258a
100644
(file)
--- a/
src/write_graphite.c
+++ b/
src/write_graphite.c
@@
-439,10
+439,10
@@
static int wg_send_message (const char* key, const char* value,
char message[1024];
message_len = (size_t) ssnprintf (message, sizeof (message),
- "%s %s %
.0f
\r\n",
+ "%s %s %
u
\r\n",
key,
value,
-
CDTIME_T_TO_DOUBLE
(time));
+
(unsigned int) CDTIME_T_TO_TIME_T
(time));
if (message_len >= sizeof (message)) {
ERROR ("write_graphite plugin: message buffer too small: "
"Need %zu bytes.", message_len + 1);