I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 1fdeba07 authored by zzz's avatar zzz
Browse files

max not min

parent 3f39cea8
No related branches found
No related tags found
No related merge requests found
...@@ -17,7 +17,7 @@ public class LogConsoleBuffer { ...@@ -17,7 +17,7 @@ public class LogConsoleBuffer {
/** /**
* Uses default limit from LogManager. * 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 * @param context unused
*/ */
...@@ -30,10 +30,10 @@ public class LogConsoleBuffer { ...@@ -30,10 +30,10 @@ public class LogConsoleBuffer {
* In theory the limit is configurable, but it isn't in the UI, * In theory the limit is configurable, but it isn't in the UI,
* so set it at construction. * so set it at construction.
* *
* @since 0.8.7 * @since 0.8.8
*/ */
public LogConsoleBuffer(int limit) { 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, // Add some extra room to minimize the chance of losing a message,
// since we are doing offer() below. // since we are doing offer() below.
_buffer = new LinkedBlockingQueue(limit + 4); _buffer = new LinkedBlockingQueue(limit + 4);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment