diff --git a/libs/server/Resp/AdminCommands.cs b/libs/server/Resp/AdminCommands.cs index 353e127584..389201eb49 100644 --- a/libs/server/Resp/AdminCommands.cs +++ b/libs/server/Resp/AdminCommands.cs @@ -280,7 +280,7 @@ private bool ProcessAdminCommands(ReadOnlySpan command, ReadOn if (!success) return false; if (Encoding.ASCII.GetString(param) == "COUNT") { - while (!RespWriteUtils.WriteDirect(Encoding.ASCII.GetBytes($":{RespInfo.GetCommandsCount()}\r\n"), ref dcurr, dend)) + while (!RespWriteUtils.WriteInteger(RespInfo.GetCommandsCount(), ref dcurr, dend)) SendAndReset(); } else