Browse Source

Don't queue workerstats while ckdb is offline

master
Con Kolivas 10 years ago
parent
commit
0bd96f22e6
  1. 5
      src/stratifier.c

5
src/stratifier.c

@ -3507,6 +3507,11 @@ static void update_workerstats(ckpool_t *ckp, sdata_t *sdata)
time_t now_t; time_t now_t;
ts_t ts_now; ts_t ts_now;
if (sdata->ckdb_offline) {
LOGDEBUG("Not queueing workerstats due to ckdb offline");
return;
}
if (++sdata->stats.userstats_cycle > 0x1f) if (++sdata->stats.userstats_cycle > 0x1f)
sdata->stats.userstats_cycle = 0; sdata->stats.userstats_cycle = 0;

Loading…
Cancel
Save