diff --git a/root/app/www/public/crons/pulls.php b/root/app/www/public/crons/pulls.php index a0b4be2..a8cac28 100644 --- a/root/app/www/public/crons/pulls.php +++ b/root/app/www/public/crons/pulls.php @@ -35,7 +35,7 @@ if ($containerSettings['autoRestart'] && $containerState) { try { $cron = Cron\CronExpression::factory($containerSettings['autoRestartFrequency']); - if (!$cron->isDue($startStamp)) { + if ($cron->isDue($startStamp)) { $msg = 'Auto Restarting: ' . $containerState['Names']; logger(CRON_PULLS_LOG, $msg); echo date('c') . ' ' . $msg . "\n";