Commit 9d994160 authored by God Ly's avatar God Ly Committed by it2000

useless Math.round() removed

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@11686 b35dd754-fafc-0310-a699-88a17e54d16e
parent a6ff3fc8
...@@ -107,7 +107,7 @@ public class OutgoingSessionPromise implements RoutableChannelHandler { ...@@ -107,7 +107,7 @@ public class OutgoingSessionPromise implements RoutableChannelHandler {
maxThreads = 10; maxThreads = 10;
} }
threadPool = threadPool =
new ThreadPoolExecutor(Math.round(maxThreads/4), maxThreads, 60, TimeUnit.SECONDS, new ThreadPoolExecutor(maxThreads/4, maxThreads, 60, TimeUnit.SECONDS,
new LinkedBlockingQueue<Runnable>(queueSize), new LinkedBlockingQueue<Runnable>(queueSize),
new ThreadPoolExecutor.CallerRunsPolicy()); new ThreadPoolExecutor.CallerRunsPolicy());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment