diff options
Diffstat (limited to '')
-rw-r--r-- | src/aclk/aclk_stats.c (renamed from aclk/aclk_stats.c) | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/aclk/aclk_stats.c b/src/aclk/aclk_stats.c index f4672882b..47a48c366 100644 --- a/aclk/aclk_stats.c +++ b/src/aclk/aclk_stats.c @@ -1,6 +1,8 @@ // SPDX-License-Identifier: GPL-3.0-or-later +#ifndef MQTT_WSS_CPUSTATS #define MQTT_WSS_CPUSTATS +#endif #include "aclk_stats.h" @@ -385,11 +387,12 @@ void *aclk_stats_main_thread(void *ptr) struct aclk_metrics permanent; while (service_running(SERVICE_ACLK | SERVICE_COLLECTORS)) { - netdata_thread_testcancel(); + // ------------------------------------------------------------------------ // Wait for the next iteration point. heartbeat_next(&hb, step_ut); + if (!service_running(SERVICE_ACLK | SERVICE_COLLECTORS)) break; ACLK_STATS_LOCK; |