From e3016faa6f8e066b4b06dd22042a5c80661ccfbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=82=E6=9E=9C=E7=9A=84=E5=A6=82=E6=9E=9C?= Date: Wed, 2 Dec 2020 11:30:39 +0800 Subject: [PATCH] =?UTF-8?q?startUpTime=20=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Process/AbstractProcess.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Process/AbstractProcess.php b/src/Process/AbstractProcess.php index c2f8edc..e3fe4e4 100644 --- a/src/Process/AbstractProcess.php +++ b/src/Process/AbstractProcess.php @@ -91,7 +91,8 @@ function __start(Process $process) $table->set($process->pid,[ 'pid'=>$process->pid, 'name'=>$this->config->getProcessName(), - 'group'=>$this->config->getProcessGroup() + 'group'=>$this->config->getProcessGroup(), + 'startUpTime'=>time() ]); \Swoole\Timer::tick(1*1000,function ()use($table,$process){ $table->set($process->pid,[