walkor 2 лет назад
Родитель
Сommit
d1beba0928
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/Timer.php

+ 1 - 1
src/Timer.php

@@ -173,7 +173,7 @@ class Timer
                 return;
             // Swow
             case Swow::class:
-                usleep((int)$delay * 1000 * 1000);
+                usleep((int)($delay * 1000 * 1000));
                 return;
         }
         throw new RuntimeException('Timer::sleep() require revolt/event-loop. Please run command "composer require revolt/event-loop" and restart workerman');