summaryrefslogtreecommitdiffstats
path: root/ml
diff options
context:
space:
mode:
Diffstat (limited to 'ml')
-rw-r--r--ml/Host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ml/Host.cc b/ml/Host.cc
index 0b91014b14..662b470776 100644
--- a/ml/Host.cc
+++ b/ml/Host.cc
@@ -303,7 +303,7 @@ void Host::detect() {
while (service_running((SERVICE_TYPE)(SERVICE_ML_PREDICTION | SERVICE_COLLECTORS))) {
worker_is_idle();
- heartbeat_next(&HB, RH->rrd_update_every * USEC_PER_SEC);
+ heartbeat_next(&HB, (RH ? RH->rrd_update_every : default_rrd_update_every) * USEC_PER_SEC);
detectOnce();
}
}