diff --git a/src/check.c b/src/check.c index a440185da..4e681d5db 100644 --- a/src/check.c +++ b/src/check.c @@ -1475,6 +1475,7 @@ int start_check_task(struct check *check, int mininter, int nbcheck, int srvpos) { struct task *t; + ulong boottime = tv_ms_remain(&start_date, &ready_date); /* task for the check. Process-based checks exclusively run on thread 1. */ if (check->type == PR_O2_EXT_CHK) @@ -1504,7 +1505,7 @@ int start_check_task(struct check *check, int mininter, mininter = global.max_spread_checks; /* check this every ms */ - t->expire = tick_add(now_ms, MS_TO_TICKS(mininter * srvpos / nbcheck)); + t->expire = tick_add(now_ms, MS_TO_TICKS(boottime + mininter * srvpos / nbcheck)); check->start = now_ns; task_queue(t);