From dcafe41cded3c13af8f3cf0df946bf90a40cba33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 11 Apr 2013 14:09:49 +0200 Subject: [PATCH] execute cron tasks with 60 second resolution, instead of 61 seconds --- core/master_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/master_utils.c b/core/master_utils.c index 33de0b65..28909312 100644 --- a/core/master_utils.c +++ b/core/master_utils.c @@ -652,7 +652,7 @@ void uwsgi_manage_signal_cron(time_t now) { if (run_task == 1) { // date match, signal it ? - if (now - ucron->last_job > 60) { + if (now - ucron->last_job >= 60) { uwsgi_route_signal(ucron->sig); ucron->last_job = now; } @@ -701,7 +701,7 @@ void uwsgi_manage_command_cron(time_t now) { if (run_task == 1) { // date match, run command ? - if (now - current_cron->last_job > 60) { + if (now - current_cron->last_job >= 60) { //call command if (current_cron->command) { if (uwsgi_run_command(current_cron->command, NULL, -1) >= 0) {