Author: toad
Date: 2008-04-15 18:10:47 +0000 (Tue, 15 Apr 2008)
New Revision: 19356
Modified:
trunk/freenet/src/freenet/support/PooledExecutor.java
Log:
Maybe fix #2118.
Modified: trunk/freenet/src/freenet/support/PooledExecutor.java
===================================================================
--- trunk/freenet/src/freenet/support/PooledExecutor.java 2008-04-15
18:09:33 UTC (rev 19355)
+++ trunk/freenet/src/freenet/support/PooledExecutor.java 2008-04-15
18:10:47 UTC (rev 19356)
@@ -116,7 +116,7 @@
public synchronized int[] runningThreads() {
int[] result = new int[runningThreads.length];
for(int i = 0; i < result.length; i++)
- result[i] = runningThreads[i].size();
+ result[i] = runningThreads[i].size() -
waitingThreads[i].size();
return result;
}