summaryrefslogtreecommitdiffstats
path: root/streaming/sender.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-26 17:10:08 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-10-26 17:10:18 +0000
commitbb3cae2edeb7b698c9dfcbe74df9eb17d03c771b (patch)
tree55748ed1435e5a5221b91426ecd284ffa1fe7094 /streaming/sender.c
parentReleasing debian version 1.43.0-1. (diff)
downloadnetdata-bb3cae2edeb7b698c9dfcbe74df9eb17d03c771b.tar.xz
netdata-bb3cae2edeb7b698c9dfcbe74df9eb17d03c771b.zip
Merging upstream version 1.43.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'streaming/sender.c')
-rw-r--r--streaming/sender.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/streaming/sender.c b/streaming/sender.c
index c37b158b1..71f875034 100644
--- a/streaming/sender.c
+++ b/streaming/sender.c
@@ -376,7 +376,7 @@ struct {
bool dynamic;
const char *error;
int worker_job_id;
- time_t postpone_reconnect_seconds;
+ int postpone_reconnect_seconds;
bool prevent_log;
} stream_responses[] = {
{
@@ -505,7 +505,7 @@ static inline bool rrdpush_sender_validate_response(RRDHOST *host, struct sender
bool prevent_log = stream_responses[i].prevent_log;
const char *error = stream_responses[i].error;
int worker_job_id = stream_responses[i].worker_job_id;
- time_t delay = stream_responses[i].postpone_reconnect_seconds;
+ int delay = stream_responses[i].postpone_reconnect_seconds;
worker_is_busy(worker_job_id);
rrdpush_sender_thread_close_socket(host);
@@ -519,7 +519,7 @@ static inline bool rrdpush_sender_validate_response(RRDHOST *host, struct sender
internal_error(true, "STREAM %s [send to %s]: %s - will retry in %ld secs, at %s",
rrdhost_hostname(host), s->connected_to, error, delay, buf);
else
- netdata_log_error("STREAM %s [send to %s]: %s - will retry in %ld secs, at %s",
+ netdata_log_error("STREAM %s [send to %s]: %s - will retry in %d secs, at %s",
rrdhost_hostname(host), s->connected_to, error, delay, buf);
return false;