summaryrefslogtreecommitdiffstats
path: root/ml/ml.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ml/ml.cc')
-rw-r--r--ml/ml.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ml/ml.cc b/ml/ml.cc
index 461c83baae..0b053f98a1 100644
--- a/ml/ml.cc
+++ b/ml/ml.cc
@@ -167,12 +167,14 @@ void ml_cancel_anomaly_detection_threads(RRDHOST *RH) {
}
}
-void ml_chart_update_begin(RRDSET *RS) {
+bool ml_chart_update_begin(RRDSET *RS) {
Chart *C = reinterpret_cast<Chart *>(RS->ml_chart);
if (!C)
- return;
+ return false;
C->updateBegin();
+
+ return true;
}
void ml_chart_update_end(RRDSET *RS) {