From 146142ff2c6bcdd85fe52b5160739b5c0bc75f2f Mon Sep 17 00:00:00 2001 From: kanoi Date: Sun, 21 Aug 2016 02:15:28 +1000 Subject: [PATCH] ckdb - missing time initialisation --- src/ckdb.c | 1 + src/ckdb.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ckdb.c b/src/ckdb.c index 578bb942..c8f3c9f0 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -3232,6 +3232,7 @@ setitemdata: found_msgs[i].last.tv_sec = 0; ck_wlock(&seq_found_lock); if (has_found) { + setnow(&found_now); for (i = 0; i < SEQ_MAX; i++) { if (found[i].last.tv_sec != 0 && tvdiff(&found_now, &(found[i].last)) >= 2.0) { diff --git a/src/ckdb.h b/src/ckdb.h index 83117ffe..628bcb5f 100644 --- a/src/ckdb.h +++ b/src/ckdb.h @@ -58,7 +58,7 @@ #define DB_VLOCK "1" #define DB_VERSION "1.0.7" -#define CKDB_VERSION DB_VERSION"-2.410" +#define CKDB_VERSION DB_VERSION"-2.411" #define WHERE_FFL " - from %s %s() line %d" #define WHERE_FFL_HERE __FILE__, __func__, __LINE__