Author: toad
Date: 2008-12-05 16:48:03 +0000 (Fri, 05 Dec 2008)
New Revision: 24068

Modified:
   trunk/freenet/src/freenet/node/OpennetManager.java
Log:
Rename parameter


Modified: trunk/freenet/src/freenet/node/OpennetManager.java
===================================================================
--- trunk/freenet/src/freenet/node/OpennetManager.java  2008-12-05 16:10:58 UTC 
(rev 24067)
+++ trunk/freenet/src/freenet/node/OpennetManager.java  2008-12-05 16:48:03 UTC 
(rev 24068)
@@ -273,11 +273,11 @@
         * @param addAtLRU If there is a node to add, add it at the bottom 
rather than the top. Normally
         * we set this on new path folded nodes so that they will be replaced 
if during the trial period,
         * plus the time it takes to get a new path folding offer, they don't 
have a successful request.
-        * @param notSendingOffer If true, and nodeToAddNow == null, we don't 
actually send an offer, we
+        * @param justChecking If true, and nodeToAddNow == null, we don't 
actually send an offer, we
         * just want to know if there is space for a node.
         * @return True if the node was added / should be added.
         */
-       public boolean wantPeer(PeerNode nodeToAddNow, boolean addAtLRU, 
boolean notSendingOffer) {
+       public boolean wantPeer(PeerNode nodeToAddNow, boolean addAtLRU, 
boolean justChecking) {
                boolean notMany = false;
                boolean noDisconnect;
                synchronized(this) {
@@ -298,7 +298,7 @@
                                } else {
                                        if(logMINOR) Logger.minor(this, "Want 
peer because not enough opennet nodes");
                                }
-                               if(nodeToAddNow != null || !notSendingOffer)
+                               if(nodeToAddNow != null || !justChecking)
                                        timeLastOffered = 
System.currentTimeMillis();
                                notMany = true;
                        }
@@ -357,7 +357,7 @@
                                        } else {
                                                if(!dropList.isEmpty())
                                                        timeLastDropped = now;
-                                               if(!notSendingOffer) {
+                                               if(!justChecking) {
                                                        timeLastOffered = now;
                                                        if(logMINOR)
                                                                
Logger.minor(this, "Sending offer");

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to