diff --git a/src/util-profiling.h b/src/util-profiling.h index 51f6f21996..1bc64ace5e 100644 --- a/src/util-profiling.h +++ b/src/util-profiling.h @@ -185,7 +185,7 @@ void SCProfilingAddPacket(Packet *); #define PACKET_PROFILING_DETECT_END(p, id) \ if (profiling_packets_enabled) { \ - if ((id) < TMM_SIZE) { \ + if ((id) < PROF_DETECT_SIZE) { \ (p)->profile.detect[(id)].ticks_end = UtilCpuGetTicks();\ if ((p)->profile.detect[(id)].ticks_start != 0 && \ (p)->profile.detect[(id)].ticks_start < (p)->profile.detect[(id)].ticks_end) { \