Browse Source

ckdb - add 250, 500 and 1000 blocks to the block stats table

master
kanoi 9 years ago
parent
commit
c3d9ad3d0a
  1. 2
      src/ckdb.h
  2. 6
      src/ckdb_cmd.c

2
src/ckdb.h

@ -51,7 +51,7 @@
#define DB_VLOCK "1" #define DB_VLOCK "1"
#define DB_VERSION "1.0.4" #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 " - from %s %s() line %d"
#define WHERE_FFL_HERE __FILE__, __func__, __LINE__ #define WHERE_FFL_HERE __FILE__, __func__, __LINE__

6
src/ckdb_cmd.c

@ -1371,6 +1371,12 @@ redo:
desc = "Last 50"; desc = "Last 50";
} else if (seq == tot - 99) { } else if (seq == tot - 99) {
desc = "Last 100"; 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) { if (desc) {
snprintf(tmp, sizeof(tmp), snprintf(tmp, sizeof(tmp),

Loading…
Cancel
Save