From ec63e05575ad5a414e1df9d574165d629a4dc900 Mon Sep 17 00:00:00 2001 From: Xboard <147830212+cedar2025@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:52:10 +0800 Subject: [PATCH] Update webman.php --- webman.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webman.php b/webman.php index 1cd5d9d..96e44ec 100644 --- a/webman.php +++ b/webman.php @@ -7,7 +7,7 @@ use Workerman\Worker; Adapterman::init(); $http_worker = new Worker('http://127.0.0.1:7010'); -$http_worker->count = getenv('WEBMAN_WORKERS') ?? (swoole_cpu_num() ?? 1); +$http_worker->count = getenv('WEBMAN_WORKERS') ?: (swoole_cpu_num() ?: 1); $http_worker->name = 'AdapterMan'; $http_worker->onWorkerStart = static function () {