From 0bd96f22e66d035b53d4192e7ef4c9d695469d20 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 23 Jan 2015 15:26:04 +1100 Subject: [PATCH] Don't queue workerstats while ckdb is offline --- src/stratifier.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index 839e70eb..c69221a1 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -3507,6 +3507,11 @@ static void update_workerstats(ckpool_t *ckp, sdata_t *sdata) time_t now_t; ts_t ts_now; + if (sdata->ckdb_offline) { + LOGDEBUG("Not queueing workerstats due to ckdb offline"); + return; + } + if (++sdata->stats.userstats_cycle > 0x1f) sdata->stats.userstats_cycle = 0;