diff --git a/tests/cronrun.c b/tests/cronrun.c index 66e3d3c..668fbef 100644 --- a/tests/cronrun.c +++ b/tests/cronrun.c @@ -58,10 +58,11 @@ int main(void) uev_init(&ctx); gettimeofday(&tv, NULL); + when = tv.tv_sec + TIMEOUT; + printf("Start of test %s", ctime(&tv.tv_sec)); printf("Expected cron %s", ctime(&when)); - when = tv.tv_sec + TIMEOUT; interval = INTERVAL; uev_cron_init(&ctx, &cron_watcher, cron_job, NULL, when, interval);