From 513f6db718fa05a7caf02b4bb500e1a2058eb301 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Thu, 30 Sep 2021 18:42:51 +0100 Subject: [PATCH] Increase command log ring buffer size to 256 --- src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index e0c9cb0242..e05765602c 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -554,7 +554,7 @@ struct CommandLogEntry { }; struct CommandLog { - std::array log; + std::array log; unsigned int count = 0; unsigned int next = 0; @@ -619,7 +619,7 @@ static void DumpSubCommandLog(char *&buffer, const char *last, const CommandLog char *DumpCommandLog(char *buffer, const char *last) { - const unsigned int count = std::min(_command_log.count, 128); + const unsigned int count = std::min(_command_log.count, 256); buffer += seprintf(buffer, last, "Command Log:\n Showing most recent %u of %u commands\n", count, _command_log.count); DumpSubCommandLog(buffer, last, _command_log, count);