From c3d9ad3d0acecbdd3c3e13026141a66ee450af26 Mon Sep 17 00:00:00 2001 From: kanoi Date: Sat, 30 Jan 2016 22:58:51 +1100 Subject: [PATCH] ckdb - add 250, 500 and 1000 blocks to the block stats table --- src/ckdb.h | 2 +- src/ckdb_cmd.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ckdb.h b/src/ckdb.h index 7869435e..1af2ed49 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -51,7 +51,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.4" -#define CKDB_VERSION DB_VERSION"-1.922" +#define CKDB_VERSION DB_VERSION"-1.923" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__ diff --git a/src/ckdb_cmd.c b/src/ckdb_cmd.c index 39baa646..624daf35 100644 --- a/src/ckdb_cmd.c +++ b/src/ckdb_cmd.c @@ -1371,6 +1371,12 @@ redo: desc = "Last 50"; } else if (seq == tot - 99) { desc = "Last 100"; + } else if (seq == tot - 249) { + desc = "Last 250"; + } else if (seq == tot - 499) { + desc = "Last 500"; + } else if (seq == tot - 999) { + desc = "Last 1000"; } if (desc) { snprintf(tmp, sizeof(tmp),