From: Juliana Fajardini Date: Mon, 28 Jul 2025 22:55:39 +0000 (-0300) Subject: detect/engine: simplify stats counters registration X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=HEAD;p=thirdparty%2Fsuricata.git detect/engine: simplify stats counters registration --- 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()) {