projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[2475] write_prometheus plugin: Fix port listening
[collectd.git]
/
src
/
log_logstash.c
diff --git
a/src/log_logstash.c
b/src/log_logstash.c
index
3ef7139
..
8df4313
100644
(file)
--- a/
src/log_logstash.c
+++ b/
src/log_logstash.c
@@
-79,7
+79,6
@@
static void log_logstash_print(yajl_gen g, int severity,
struct tm timestamp_tm;
char timestamp_str[64];
const unsigned char *buf;
struct tm timestamp_tm;
char timestamp_str[64];
const unsigned char *buf;
- time_t tt;
#if HAVE_YAJL_V2
size_t len;
#else
#if HAVE_YAJL_V2
size_t len;
#else
@@
-127,8
+126,7
@@
static void log_logstash_print(yajl_gen g, int severity,
yajl_gen_status_ok)
goto err;
yajl_gen_status_ok)
goto err;
- tt = CDTIME_T_TO_TIME_T(timestamp_time);
- gmtime_r(&tt, ×tamp_tm);
+ gmtime_r(&CDTIME_T_TO_TIME_T(timestamp_time), ×tamp_tm);
/*
* format time as a UTC ISO 8601 compliant string
/*
* format time as a UTC ISO 8601 compliant string