summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ccfed46)
raw | patch | inline | side by side (parent: ccfed46)
author | Kevin Bowling <kevin.bowling@kev009.com> | |
Thu, 14 Aug 2014 09:21:17 +0000 (02:21 -0700) | ||
committer | Kevin Bowling <kevin.bowling@kev009.com> | |
Thu, 14 Aug 2014 09:21:17 +0000 (02:21 -0700) |
src/write_tsdb.c | patch | blob | history |
diff --git a/src/write_tsdb.c b/src/write_tsdb.c
index 9dff2904fbff14e81cca8dff62a5faf8d6cb800e..2eca77e1b038fd9a658864917d616f31ccfa55bc 100644 (file)
--- a/src/write_tsdb.c
+++ b/src/write_tsdb.c
char *tags = "";
char message[1024];
char *host_tags = cb->host_tags ? cb->host_tags : "";
- const char *message_fmt;
const char *meta_tsdb = "tsdb_tags";
/* skip if value is NaN */
}
}
- message_fmt = "put %s %u %s fqdn=%s %s %s\r\n";
- message_len = ssnprintf (message, sizeof(message),
- message_fmt,
- key,
- (unsigned int)CDTIME_T_TO_TIME_T(
- time),
- value,
- host,
- tags,
- host_tags);
+ message_len = ssnprintf (message,
+ sizeof(message),
+ "put %s %.0f %s fqdn=%s %s %s\r\n",
+ key,
+ CDTIME_T_TO_DOUBLE(time),
+ value,
+ host,
+ tags,
+ host_tags);
sfree(temp);