vali 6 năm trước cách đây
mục cha
commit
dda87f7120
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      datainf/logic/HttpServerDataInf.php

+ 5 - 0
datainf/logic/HttpServerDataInf.php

@@ -50,6 +50,11 @@ class HttpServerDataInf
         if ($serv->worker_id == 0) {
             \Swoole\Timer::tick(60000, function () {
                 $this->logRunStatus();
+            });
+        }
+
+        if ($serv->worker_id == 1) {
+            \Swoole\Timer::tick(5, function () {
                 if ($this->httpserver->taskWorkingNum->get() > 1) {
                     $this->httpserver->taskWorkingNum->sub();
                 }