From 1fdeba074577bc60f723b156fd8899f3b72aee1a Mon Sep 17 00:00:00 2001 From: zzz <zzz@mail.i2p> Date: Fri, 24 Jun 2011 01:43:53 +0000 Subject: [PATCH] max not min --- core/java/src/net/i2p/util/LogConsoleBuffer.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/src/net/i2p/util/LogConsoleBuffer.java b/core/java/src/net/i2p/util/LogConsoleBuffer.java index c189f540c8..fba4a3c58f 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); -- GitLab