From 2e7f251bbd26179e86e3ec33b61aae3e9a71da47 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 20 Mar 2021 03:41:50 +0800 Subject: [PATCH] modify --- System/Process/CrontabProcess.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }