소스 검색

$currTime = time();

visuddhinanda 2 년 전
부모
커밋
ff4482e80b
1개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 9 4
      app/Console/Commands/UpgradeDaily.php

+ 9 - 4
app/Console/Commands/UpgradeDaily.php

@@ -59,23 +59,28 @@ class UpgradeDaily extends Command
         $this->call('upgrade:dict.default.meaning');
         $time = time()-$start;
         $message .= "dict.default.meaning:{$time}; ";
+        $currTime = time();
         //社区术语表
         $this->call('upgrade:community.term',['lang'=>'zh-Hans']);
-        $time = time()-$time;
+        $time = time()-$currTime;
         $message .= "community.term:{$time}; ";
+        $currTime = time();
 
         #译文进度
         $this->call('upgrade:progress');
-        $time = time()-$time;
+        $time = time()-$currTime;
         $message .= "progress:{$time}; ";
+        $currTime = time();
         $this->call('upgrade:progress.chapter');
-        $time = time()-$time;
+        $time = time()-$currTime;
         $message .= "progress.chapter:{$time}; ";
+        $currTime = time();
 
         # 逐词译数据库分析
         $this->call('upgrade:wbw.analyses');
-        $time = time()-$time;
+        $time = time()-$currTime;
         $message .= "wbw.analyses:{$time}; ";
+        $currTime = time();
 
         $time = time()-$start;
         $message .= "总时间:{$time}; ";