Author: nextgens
Date: 2009-01-27 15:07:03 +0000 (Tue, 27 Jan 2009)
New Revision: 25316
Modified:
trunk/freenet/src/freenet/node/NodeStats.java
Log:
fix what is displayed on NodeStats
Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java 2009-01-27 15:01:13 UTC
(rev 25315)
+++ trunk/freenet/src/freenet/node/NodeStats.java 2009-01-27 15:07:03 UTC
(rev 25316)
@@ -172,8 +172,6 @@
// ThreadCounting stuffs
public final ThreadGroup rootThreadGroup;
- private int[] activeThreadsByPriorities = new
int[NativeThread.JAVA_PRIORITY_RANGE];
- private int[] waitingThreadsByPriorities = new
int[NativeThread.JAVA_PRIORITY_RANGE];
private int threadLimit;
final NodePinger nodePinger;
@@ -1018,11 +1016,11 @@
}
public int[] getActiveThreadsByPriority() {
- return activeThreadsByPriorities;
+ return node.executor.runningThreads();
}
public int[] getWaitingThreadsByPriority() {
- return waitingThreadsByPriorities;
+ return node.executor.waitingThreads();
}
public int getThreadLimit() {
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs