stanley-king hace 3 años
padre
commit
3721cc7cb7
Se han modificado 1 ficheros con 8 adiciones y 3 borrados
  1. 8 3
      rdispatcher/codispatcher.php

+ 8 - 3
rdispatcher/codispatcher.php

@@ -117,12 +117,17 @@ function ratio_update(&$quit)
                 $cur_min = $next_min;
                 break;
             } else {
+                Log::record("ratio_update start sleep",Log::DEBUG);
                 Swoole\Coroutine::sleep(1);
+                Log::record("ratio_update end sleep",Log::DEBUG);
             }
         }
-        if(!$quit) {
-            refill\RefillFactory::instance()->UpdateRatio();
-        }
+
+
+
+//        if(!$quit) {
+//            refill\RefillFactory::instance()->UpdateRatio();
+//        }
     }
 
     Log::record("ratio_update quit =". strbool($quit),Log::DEBUG);