Reset proper window part
@@ -135,8 +135,8 @@ od_route_pool_stat(od_route_pool_t *pool,
next_tdigest =
(current_tdigest + 1) % QUANTILES_WINDOW;
td_reset(
- route->stats.transaction_hgram[current_tdigest]);
- td_reset(route->stats.query_hgram[current_tdigest]);
+ route->stats.transaction_hgram[next_tdigest]);
+ td_reset(route->stats.query_hgram[next_tdigest]);
route->stats.current_tdigest = next_tdigest;
}
