Merge in SNORT/snort3 from ~AKAYAMBU/snort3:timing_stats_fix to master
Squashed commit of the following:
commit
87f6beb339848be3b2175ee409cabab96b1a96e1
Author: Arunkumar Kayambu <akayambu@cisco.com>
Date: Tue Mar 5 15:32:26 2024 -0500
stats: fix timing stats
if (!global_stats())
{
+ //reset the results
+ std::fill(dump_stats_results.begin(), dump_stats_results.end(), 0);
for ( int i = 0; i < num_counts; i++ )
{
for ( unsigned thread_index = 0; thread_index < dump_stats_counts.size(); thread_index++)
{
::show_stats(&dump_stats_results[0], get_pegs(), num_counts, get_name());
dump_stats_initialized.assign(dump_stats_initialized.size(), 0);
- std::fill(dump_stats_results.begin(), dump_stats_results.end(), 0);
}
}