execute cron tasks with 60 second resolution, instead of 61 seconds

This commit is contained in:
Łukasz Mierzwa
2013-04-11 14:09:49 +02:00
parent d7534d2673
commit dcafe41cde
+2 -2
View File
@@ -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) {