From 53491bcdec661cc414b659fff0672369f7ccfeaf Mon Sep 17 00:00:00 2001 From: kanoi Date: Fri, 8 Aug 2014 00:03:12 +1000 Subject: [PATCH] ckdb - poolstats searching in the correct direction --- src/ckdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ckdb.c b/src/ckdb.c index 506e5554..8a6b6b54 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -5757,7 +5757,7 @@ static char *cmd_poolstats_do(char *cmd, char *id, char *by, char *code, while (ps && !DATA_POOLSTATS(ps)->stored && strcmp(row.poolinstance, DATA_POOLSTATS(ps)->poolinstance) == 0 && tvdiff(cd, &(DATA_POOLSTATS(ps)->createdate)) < STATS_PER) { - ps = next_in_ktree(ctx); + ps = prev_in_ktree(ctx); } if (!ps || !DATA_POOLSTATS(ps)->stored ||