diff options
Diffstat (limited to 'src/ml/ml.cc')
-rw-r--r-- | src/ml/ml.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ml/ml.cc b/src/ml/ml.cc index 7ecdce41..61574b28 100644 --- a/src/ml/ml.cc +++ b/src/ml/ml.cc @@ -1218,11 +1218,11 @@ ml_detect_main(void *arg) worker_register_job_name(WORKER_JOB_DETECTION_STATS, "training stats"); heartbeat_t hb; - heartbeat_init(&hb); + heartbeat_init(&hb, USEC_PER_SEC); while (!Cfg.detection_stop && service_running(SERVICE_COLLECTORS)) { worker_is_idle(); - heartbeat_next(&hb, USEC_PER_SEC); + heartbeat_next(&hb); RRDHOST *rh; rrd_rdlock(); |