summaryrefslogtreecommitdiffstats
path: root/modules/stats
diff options
context:
space:
mode:
Diffstat (limited to 'modules/stats')
-rw-r--r--modules/stats/stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/stats/stats.c b/modules/stats/stats.c
index f6173ad0..cff04b24 100644
--- a/modules/stats/stats.c
+++ b/modules/stats/stats.c
@@ -218,7 +218,7 @@ static int collect(kr_layer_t *ctx)
stat_const_add(data, metric_answer_slow, 1);
}
/* Observe the final query. */
- struct kr_query *last = array_tail(rplan->resolved);
+ struct kr_query *last = kr_rplan_last(rplan);
if (last->flags.CACHED) {
stat_const_add(data, metric_answer_cached, 1);
}