summaryrefslogtreecommitdiffstats
path: root/src/collectors/macos.plugin/plugin_macos.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/collectors/macos.plugin/plugin_macos.c')
-rw-r--r--src/collectors/macos.plugin/plugin_macos.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/collectors/macos.plugin/plugin_macos.c b/src/collectors/macos.plugin/plugin_macos.c
index 0d651ae69..6f5b892d8 100644
--- a/src/collectors/macos.plugin/plugin_macos.c
+++ b/src/collectors/macos.plugin/plugin_macos.c
@@ -54,13 +54,12 @@ void *macos_main(void *ptr)
worker_register_job_name(i, macos_modules[i].dim);
}
- usec_t step = 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_COLLECTORS)) {
worker_is_idle();
- usec_t hb_dt = heartbeat_next(&hb, step);
+ usec_t hb_dt = heartbeat_next(&hb);
if (!service_running(SERVICE_COLLECTORS))
break;