From 428e9a0d1f5bda77a8139e8954bc03fbe0821712 Mon Sep 17 00:00:00 2001 From: Joanhey Date: Sun, 23 Oct 2022 14:07:10 +0200 Subject: [PATCH] Add event loop in displayUI --- Worker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Worker.php b/Worker.php index 8d48c48b7..0e653f8f6 100644 --- a/Worker.php +++ b/Worker.php @@ -773,7 +773,8 @@ protected static function displayUI() } //show version - $line_version = 'Workerman version:' . static::VERSION . \str_pad('PHP version:', 22, ' ', \STR_PAD_LEFT) . \PHP_VERSION . \PHP_EOL; + $line_version = 'Workerman version:' . static::VERSION . \str_pad('PHP version:', 22, ' ', \STR_PAD_LEFT) . \PHP_VERSION; + $line_version .= \str_pad('Event-Loop:', 22, ' ', \STR_PAD_LEFT) . static::getEventLoopName() . \PHP_EOL; !\defined('LINE_VERSIOIN_LENGTH') && \define('LINE_VERSIOIN_LENGTH', \strlen($line_version)); $total_length = static::getSingleLineTotalLength(); $line_one = '' . \str_pad(' WORKERMAN ', $total_length + \strlen(''), '-', \STR_PAD_BOTH) . ''. \PHP_EOL;