Prevent wrong optimization armv7l static build (#16274)
Prevent wrong optimization rpi 32bit static build
Stelios Fragkakis committed
Oct 26, 2023 at 14:05 UTC
3ada7686b52e09151538aad1a55d08fa2d864ff0
1 file changed
+3
-3
streaming/sender.c
+3
-3
@@ -376,7 +376,7 @@ struct {
376
bool dynamic;
377
const char *error;
378
int worker_job_id;
379
- time_t postpone_reconnect_seconds;
379
+ int postpone_reconnect_seconds;
380
bool prevent_log;
381
} stream_responses[] = {
382
{
@@ -505,7 +505,7 @@ static inline bool rrdpush_sender_validate_response(RRDHOST *host, struct sender
505
bool prevent_log = stream_responses[i].prevent_log;
506
const char *error = stream_responses[i].error;
507
int worker_job_id = stream_responses[i].worker_job_id;
508
- time_t delay = stream_responses[i].postpone_reconnect_seconds;
508
+ int delay = stream_responses[i].postpone_reconnect_seconds;
509
510
worker_is_busy(worker_job_id);
511
rrdpush_sender_thread_close_socket(host);
@@ -519,7 +519,7 @@ static inline bool rrdpush_sender_validate_response(RRDHOST *host, struct sender
519
internal_error(true, "STREAM %s [send to %s]: %s - will retry in %ld secs, at %s",
520
rrdhost_hostname(host), s->connected_to, error, delay, buf);
521
else
522
- netdata_log_error("STREAM %s [send to %s]: %s - will retry in %ld secs, at %s",
522
+ netdata_log_error("STREAM %s [send to %s]: %s - will retry in %d secs, at %s",
523
rrdhost_hostname(host), s->connected_to, error, delay, buf);
524
525
return false;