Author: toad
Date: 2007-06-21 17:57:51 +0000 (Thu, 21 Jun 2007)
New Revision: 13693
Modified:
trunk/freenet/src/freenet/node/NodeDispatcher.java
Log:
Better naming to better reflect what it is
Modified: trunk/freenet/src/freenet/node/NodeDispatcher.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeDispatcher.java 2007-06-21 17:56:16 UTC
(rev 13692)
+++ trunk/freenet/src/freenet/node/NodeDispatcher.java 2007-06-21 17:57:51 UTC
(rev 13693)
@@ -522,7 +522,7 @@
* @param htl
* @param counter
* @param checkRecent
- * @param canReject True if this is a new request which can be rejected
due to load, false if it's an existing
+ * @param loadLimitRequest True if this is a new request which can be
rejected due to load, false if it's an existing
* request which we should handle anyway.
* @param cb
* @param locsNotVisited
@@ -530,7 +530,7 @@
* @return
*/
private void innerHandleProbeRequest(PeerNode src, long id, Long lid,
final double target, double best,
- double nearest, short htl, short counter, boolean
checkRecent, boolean canReject,
+ double nearest, short htl, short counter, boolean
checkRecent, boolean loadLimitRequest,
boolean fromRejection, ProbeCallback cb, Vector
locsNotVisited, double maxDistance) {
if(fromRejection) {
nearest = furthestLoc(target);
@@ -545,7 +545,7 @@
synchronized(recentProbeContexts) {
if(checkRecent) {
long now = System.currentTimeMillis();
- if(now - tLastReceivedProbeRequest < 500 &&
canReject) {
+ if(now - tLastReceivedProbeRequest < 500 &&
loadLimitRequest) {
rejected = true;
} else {
tLastReceivedProbeRequest = now;