Skip to content

Commit

Permalink
startUpTime 注册
Browse files Browse the repository at this point in the history
  • Loading branch information
kiss291323003 committed Dec 2, 2020
1 parent 6ece332 commit e3016fa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Process/AbstractProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,[
Expand Down

0 comments on commit e3016fa

Please sign in to comment.