diff options
Diffstat (limited to 'src/exporting/exporting_engine.c')
-rw-r--r-- | src/exporting/exporting_engine.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/exporting/exporting_engine.c b/src/exporting/exporting_engine.c index eb5f8a0a8..7abe0b5ce 100644 --- a/src/exporting/exporting_engine.c +++ b/src/exporting/exporting_engine.c @@ -6,7 +6,6 @@ static struct engine *engine = NULL; void analytics_exporting_connectors_ssl(BUFFER *b) { -#ifdef ENABLE_HTTPS if (netdata_ssl_exporting_ctx) { for (struct instance *instance = engine->instance_root; instance; instance = instance->next) { struct simple_connector_data *connector_specific_data = instance->connector_specific_data; @@ -16,7 +15,6 @@ void analytics_exporting_connectors_ssl(BUFFER *b) } } } -#endif buffer_strcat(b, "|"); } @@ -197,12 +195,11 @@ void *exporting_main(void *ptr) RRDDIM *rd_main_system = NULL; create_main_rusage_chart(&st_main_rusage, &rd_main_user, &rd_main_system); - usec_t step_ut = localhost->rrd_update_every * USEC_PER_SEC; heartbeat_t hb; - heartbeat_init(&hb); + heartbeat_init(&hb, localhost->rrd_update_every * USEC_PER_SEC); while (service_running(SERVICE_EXPORTERS)) { - heartbeat_next(&hb, step_ut); + heartbeat_next(&hb); engine->now = now_realtime_sec(); if (mark_scheduled_instances(engine)) |