diff --git a/src/Ipc/AbstractServer.php b/src/Ipc/AbstractServer.php index 82f3150c3..2747fa24f 100644 --- a/src/Ipc/AbstractServer.php +++ b/src/Ipc/AbstractServer.php @@ -57,7 +57,8 @@ abstract class AbstractServer extends Loop public function __construct(MTProto $API) { $this->internalInit($API); - $this->connectionGauge = $API->getPromGauge("", "ipc_server_connections", "Number of IPC server connections"); + $this->connectionGauge = $API->getPromGauge("MadelineProto", "ipc_server_connections", "Number of IPC server connections"); + $this->connectionGauge?->set(0); } /** * Server version. diff --git a/src/MTProto.php b/src/MTProto.php index 1b3818d7d..113334c0a 100644 --- a/src/MTProto.php +++ b/src/MTProto.php @@ -966,6 +966,7 @@ final class MTProto implements TLCallback, LoggerGetter, SettingsGetter }, new DefaultErrorHandler); } $this->updateCtr = $this->getPromCounter("MadelineProto", "update_count", "Number of received updates since the session was created"); + $this->updateCtr?->incBy(0); // Start IPC server if (!$this->ipcServer) { $this->ipcServer = new Server($this);