diff --git a/src/cats/stats/grid_stats.c b/src/cats/stats/grid_stats.c index 98105fac1e81e7ef97e67567888d9981ee2da34b..49b48a84a0af3a3414eb188467c2a87652810f0f 100644 --- a/src/cats/stats/grid_stats.c +++ b/src/cats/stats/grid_stats.c @@ -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++) { 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]; + } } } }