Skip to content
Snippets Groups Projects
Commit c25fdf08 authored by Andreas Gattringer's avatar Andreas Gattringer Committed by Andreas Gattringer
Browse files

grid_stats: consolidate thread stats for custom stats

parent 24b8a998
No related branches found
No related tags found
No related merge requests found
...@@ -143,6 +143,10 @@ void consolidate_thread_stats(struct cats_grid *grid, struct cats_configuration ...@@ -143,6 +143,10 @@ void consolidate_thread_stats(struct cats_grid *grid, struct cats_configuration
for (int32_t stat_idx = STAT_MIN; stat_idx < STAT_MAX; stat_idx++) { for (int32_t stat_idx = STAT_MIN; stat_idx < STAT_MAX; stat_idx++) {
g->stats.stats[stat_idx] += threads[i].stats[class].stats[stat_idx]; g->stats.stats[stat_idx] += threads[i].stats[class].stats[stat_idx];
} }
for (int64_t j = 0; j < threads[i].stats->custom_stat_count; j++){
g->stats.custom_stats[j] += threads[i].stats[class].custom_stats[j];
}
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment