Author: toad
Date: 2006-02-09 13:39:36 +0000 (Thu, 09 Feb 2006)
New Revision: 8007
Modified:
trunk/freenet/src/freenet/node/RequestStarter.java
trunk/freenet/src/freenet/node/Version.java
Log:
436:
Fix ArrayIndexOutOfBoundsException caused by using MIN_PRIO.
Modified: trunk/freenet/src/freenet/node/RequestStarter.java
===================================================================
--- trunk/freenet/src/freenet/node/RequestStarter.java 2006-02-05 15:38:21 UTC
(rev 8006)
+++ trunk/freenet/src/freenet/node/RequestStarter.java 2006-02-09 13:39:36 UTC
(rev 8007)
@@ -36,7 +36,7 @@
/** Anything less important than prefetch (redundant??) */
public static final short MINIMUM_PRIORITY_CLASS = 6;
- public static final short NUMBER_OF_PRIORITY_CLASSES =
MINIMUM_PRIORITY_CLASS - MAXIMUM_PRIORITY_CLASS;
+ public static final short NUMBER_OF_PRIORITY_CLASSES =
MINIMUM_PRIORITY_CLASS - MAXIMUM_PRIORITY_CLASS + 1; // include 0 and max !!
final RequestThrottle throttle;
RequestScheduler sched;
Modified: trunk/freenet/src/freenet/node/Version.java
===================================================================
--- trunk/freenet/src/freenet/node/Version.java 2006-02-05 15:38:21 UTC (rev
8006)
+++ trunk/freenet/src/freenet/node/Version.java 2006-02-09 13:39:36 UTC (rev
8007)
@@ -20,7 +20,7 @@
public static final String protocolVersion = "1.0";
/** The build number of the current revision */
- private static final int buildNumber = 435;
+ private static final int buildNumber = 436;
/** Oldest build of Fred we will talk to */
private static final int lastGoodBuild = 403;