summaryrefslogtreecommitdiffstats
path: root/src/ml/ml.cc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:33:56 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-11-25 17:34:10 +0000
commit83ba6762cc43d9db581b979bb5e3445669e46cc2 (patch)
tree2e69833b43f791ed253a7a20318b767ebe56cdb8 /src/ml/ml.cc
parentReleasing debian version 1.47.5-1. (diff)
downloadnetdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.tar.xz
netdata-83ba6762cc43d9db581b979bb5e3445669e46cc2.zip
Merging upstream version 2.0.3+dfsg (Closes: #923993, #1042533, #1045145).
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/ml/ml.cc')
-rw-r--r--src/ml/ml.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ml/ml.cc b/src/ml/ml.cc
index 7ecdce418..61574b287 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();