summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStelios Fragkakis <52996999+stelfrag@users.noreply.github.com>2023-10-26 14:05:17 +0300
committerTasos Katsoulas <tasos@netdata.cloud>2023-10-26 14:19:57 +0300
commit74343d51fba48d4a4b5119fd7264075079aa3299 (patch)
treef89df0bb70a7fb2817144e430c797b6ee9196b6c
parentbbf8e320ee544ccbbd64d52355b9d5114f0d95b1 (diff)
Prevent wrong optimization armv7l static build (#16274)
Prevent wrong optimization rpi 32bit static build
-rw-r--r--streaming/sender.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/streaming/sender.c b/streaming/sender.c
index c37b158b11..71f8750342 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;