diff options
author | Fábio Depin <fabio@seti.com.br> | 2025-06-24 10:07:20 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-24 15:07:20 +0200 |
commit | 8987a2c184b6768b577a4a83e69aacb2bf69856c (patch) | |
tree | 805da6fb5cd4da1e9a28f0bf5b2da7ad6351f47c /src/lib/protocols/haproxy.c | |
parent | c216c09e2ced56bbd28583e42b28dd02ae885518 (diff) |
Fix logic: reset stats once per thread after clearing all flow roots (#2905)
Call ndpi_stats_reset() once per thread instead of once per flow root
Moved ndpi_stats_reset() outside the loop that destroys ndpi_flows_root[]
to avoid redundant resets. The stats structure is shared per thread and
should only be reset once after all roots are cleared.
Diffstat (limited to 'src/lib/protocols/haproxy.c')
0 files changed, 0 insertions, 0 deletions