Skip to content

Commit 03bc95c

Browse files
jufajardinivictorjulien
authored andcommitted
detect/engine: simplify stats counters registration
1 parent a8453d7 commit 03bc95c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/detect-engine.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3481,10 +3481,8 @@ DetectEngineThreadCtx *DetectEngineThreadCtxInitForReload(
34813481
det_ctx->counter_alerts_overflow = StatsRegisterCounter("detect.alert_queue_overflow", tv);
34823482
det_ctx->counter_alerts_suppressed = StatsRegisterCounter("detect.alerts_suppressed", tv);
34833483
#ifdef PROFILING
3484-
uint16_t counter_mpm_list = StatsRegisterAvgCounter("detect.mpm_list", tv);
3485-
uint16_t counter_match_list = StatsRegisterAvgCounter("detect.match_list", tv);
3486-
det_ctx->counter_mpm_list = counter_mpm_list;
3487-
det_ctx->counter_match_list = counter_match_list;
3484+
det_ctx->counter_mpm_list = StatsRegisterAvgCounter("detect.mpm_list", tv);
3485+
det_ctx->counter_match_list = StatsRegisterAvgCounter("detect.match_list", tv);
34883486
#endif
34893487

34903488
if (mt && DetectEngineMultiTenantEnabled()) {

0 commit comments

Comments
 (0)