From: Paul Date: Fri, 9 Dec 2022 15:43:03 +0000 (+0100) Subject: ChangeLog: v5.12 milestone: Fix issue #3127 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f2ca37ef08cc5b433777e28990679e91fa00d02;p=thirdparty%2Fcollectd.git ChangeLog: v5.12 milestone: Fix issue #3127 write_graphite connection closed message always zero --- diff --git a/src/write_graphite.c b/src/write_graphite.c index dc3b2c748..87e95403d 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -132,11 +132,10 @@ static void wg_force_reconnect_check(struct wg_callback *cb) { /* here we should close connection on next */ close(cb->sock_fd); cb->sock_fd = -1; - cb->last_reconnect_time = now; - cb->reconnect_interval_reached = true; - INFO("write_graphite plugin: Connection closed after %.3f seconds.", CDTIME_T_TO_DOUBLE(now - cb->last_reconnect_time)); + cb->last_reconnect_time = now; + cb->reconnect_interval_reached = true; } /*