diff --git a/System/Process/CrontabProcess.php b/System/Process/CrontabProcess.php index 8cf737b8..b7c7cbd9 100644 --- a/System/Process/CrontabProcess.php +++ b/System/Process/CrontabProcess.php @@ -120,12 +120,12 @@ class CrontabProcess extends Process $this->application->warning('execute crontab ' . date('Y-m-d H:i:s')); $content->execute($this); }; - $timer = $content->getTickTime() * 10; if ($content->isLoop()) { - $content->setTimerId(Timer::tick($timer, $runTicker)); + $worker = Timer::tick($content->getTickTime() * 1000, $runTicker); } else { - $content->setTimerId(Timer::after($timer, $runTicker)); + $worker = Timer::after($content->getTickTime() * 1000, $runTicker); } + $content->setTimerId($worker); $this->names[$content->getName()] = $content; }