From 03bc95c108f564b9aaa6b4fb93a8a89860d1efd9 Mon Sep 17 00:00:00 2001 From: Juliana Fajardini Date: Mon, 28 Jul 2025 19:55:39 -0300 Subject: [PATCH] detect/engine: simplify stats counters registration --- src/detect-engine.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index 904234dd37..f8e0788582 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -3481,10 +3481,8 @@ DetectEngineThreadCtx *DetectEngineThreadCtxInitForReload( det_ctx->counter_alerts_overflow = StatsRegisterCounter("detect.alert_queue_overflow", tv); det_ctx->counter_alerts_suppressed = StatsRegisterCounter("detect.alerts_suppressed", tv); #ifdef PROFILING - uint16_t counter_mpm_list = StatsRegisterAvgCounter("detect.mpm_list", tv); - uint16_t counter_match_list = StatsRegisterAvgCounter("detect.match_list", tv); - det_ctx->counter_mpm_list = counter_mpm_list; - det_ctx->counter_match_list = counter_match_list; + det_ctx->counter_mpm_list = StatsRegisterAvgCounter("detect.mpm_list", tv); + det_ctx->counter_match_list = StatsRegisterAvgCounter("detect.match_list", tv); #endif if (mt && DetectEngineMultiTenantEnabled()) { -- 2.47.2