diff --git a/core/java/src/net/i2p/util/LogConsoleBuffer.java b/core/java/src/net/i2p/util/LogConsoleBuffer.java index c189f540c84d64ef0e03ae08805669666afd181f..fba4a3c58f2e526c00f368003ae0c8132ed08ea8 100644 --- a/core/java/src/net/i2p/util/LogConsoleBuffer.java +++ b/core/java/src/net/i2p/util/LogConsoleBuffer.java @@ -17,7 +17,7 @@ public class LogConsoleBuffer { /** * Uses default limit from LogManager. - * As of 0.8.7, limit is not checked at runtime. + * As of 0.8.8, limit is not checked at runtime. * * @param context unused */ @@ -30,10 +30,10 @@ public class LogConsoleBuffer { * In theory the limit is configurable, but it isn't in the UI, * so set it at construction. * - * @since 0.8.7 + * @since 0.8.8 */ public LogConsoleBuffer(int limit) { - lim = Math.min(limit, 4); + lim = Math.max(limit, 4); // Add some extra room to minimize the chance of losing a message, // since we are doing offer() below. _buffer = new LinkedBlockingQueue(limit + 4);