|
@@ -584,10 +584,14 @@ void *rrdpush_sender_thread(void *ptr) {
|
|
|
|
|
|
s->timeout = (int)appconfig_get_number(&stream_config, CONFIG_SECTION_STREAM, "timeout seconds", 60);
|
|
|
s->default_port = (int)appconfig_get_number(&stream_config, CONFIG_SECTION_STREAM, "default port", 19999);
|
|
|
- s->max_size = (size_t)appconfig_get_number(&stream_config, CONFIG_SECTION_STREAM, "buffer size bytes",
|
|
|
- 1024 * 1024);
|
|
|
- s->reconnect_delay = (unsigned int)appconfig_get_number(&stream_config, CONFIG_SECTION_STREAM, "reconnect delay seconds", 5);
|
|
|
- remote_clock_resync_iterations = (unsigned int)appconfig_get_number(&stream_config, CONFIG_SECTION_STREAM, "initial clock resync iterations", remote_clock_resync_iterations); // TODO: REMOVE FOR SLEW / GAPFILLING
|
|
|
+ s->buffer->max_size =
|
|
|
+ (size_t)appconfig_get_number(&stream_config, CONFIG_SECTION_STREAM, "buffer size bytes", 1024 * 1024);
|
|
|
+ s->reconnect_delay =
|
|
|
+ (unsigned int)appconfig_get_number(&stream_config, CONFIG_SECTION_STREAM, "reconnect delay seconds", 5);
|
|
|
+ remote_clock_resync_iterations = (unsigned int)appconfig_get_number(
|
|
|
+ &stream_config, CONFIG_SECTION_STREAM,
|
|
|
+ "initial clock resync iterations",
|
|
|
+ remote_clock_resync_iterations); // TODO: REMOVE FOR SLEW / GAPFILLING
|
|
|
|
|
|
// initialize rrdpush globals
|
|
|
s->host->rrdpush_sender_connected = 0;
|