core: fix copy & paste bug in uwsgi_manage_command_cron

It looks like tm_hour is used where tm_mon was intended.
Reported by Coverity as CID #970975.
This commit is contained in:
Riccardo Magliocchetti
2013-01-26 19:18:15 +01:00
parent 3138d0b6c3
commit 386fac2421
+1 -1
View File
@@ -724,7 +724,7 @@ void uwsgi_manage_command_cron(time_t now) {
}
}
if (current_cron->month < 0) {
if ((uwsgi_cron_delta->tm_hour % abs(current_cron->month)) == 0) {
if ((uwsgi_cron_delta->tm_mon % abs(current_cron->month)) == 0) {
uc_month = uwsgi_cron_delta->tm_mon;
}
}