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