diff options
Diffstat (limited to 'src/libserver/worker_util.c')
-rw-r--r-- | src/libserver/worker_util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/worker_util.c b/src/libserver/worker_util.c index f6fef8df5..58d75da5d 100644 --- a/src/libserver/worker_util.c +++ b/src/libserver/worker_util.c @@ -722,7 +722,8 @@ rspamd_main_heartbeat_cb (EV_P_ ev_timer *w, int revents) time_from_last -= wrk->hb.last_event; rspamd_main = wrk->srv; - if (time_from_last > 0 && + if (wrk->hb.last_event > 0 && + time_from_last > 0 && time_from_last >= rspamd_main->cfg->heartbeat_interval * 2) { rspamd_localtime (wrk->hb.last_event, &tm); |