]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/engine: simplify stats counters registration master 13693/head
authorJuliana Fajardini <jufajardini@oisf.net>
Mon, 28 Jul 2025 22:55:39 +0000 (19:55 -0300)
committerVictor Julien <victor@inliniac.net>
Tue, 5 Aug 2025 09:26:29 +0000 (11:26 +0200)
src/detect-engine.c

index 904234dd37f2dc59ba899a706e3445909aae76f1..f8e07885829c47a6294a316890fdacb641f21451 100644 (file)
@@ -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()) {