Author: toad
Date: 2008-04-08 11:17:40 +0000 (Tue, 08 Apr 2008)
New Revision: 19071

Modified:
   trunk/freenet/src/freenet/node/LocationManager.java
Log:
indenting

Modified: trunk/freenet/src/freenet/node/LocationManager.java
===================================================================
--- trunk/freenet/src/freenet/node/LocationManager.java 2008-04-08 11:17:08 UTC 
(rev 19070)
+++ trunk/freenet/src/freenet/node/LocationManager.java 2008-04-08 11:17:40 UTC 
(rev 19071)
@@ -169,23 +169,23 @@
                                     PeerNode pn = peers[i];
                                     if(pn.isRoutable()) {
                                        synchronized(pn) {
-                                        double ploc = pn.getLocation();
-                                        if(Math.abs(ploc - myLoc) <= 
Double.MIN_VALUE) {
-                                               // Don't reset location unless 
we're SURE there is a problem.
-                                               // If the node has had its 
location equal to ours for at least 2 minutes, and ours has been likewise...
-                                               long now = 
System.currentTimeMillis();
-                                               if(now - pn.getLocSetTime() > 
120*1000 && now - timeLocSet > 120*1000) {
-                                            myFlag = true;
-                                            // Log an ERROR
-                                            // As this is an ERROR, it results 
from either a bug or malicious action.
-                                            // If it happens very frequently, 
it indicates either an attack or a serious bug.
-                                            Logger.error(this, "Randomizing 
location: my loc="+myLoc+" but loc="+ploc+" for "+pn);
-                                            break;
-                                               } else {
-                                                       Logger.normal(this, 
"Node "+pn+" has identical location to us, waiting until this has persisted for 
2 minutes...");
-                                               }
+                                               double ploc = pn.getLocation();
+                                               if(Math.abs(ploc - myLoc) <= 
Double.MIN_VALUE) {
+                                                       // Don't reset location 
unless we're SURE there is a problem.
+                                                       // If the node has had 
its location equal to ours for at least 2 minutes, and ours has been likewise...
+                                                       long now = 
System.currentTimeMillis();
+                                                       if(now - 
pn.getLocSetTime() > 120*1000 && now - timeLocSet > 120*1000) {
+                                                               myFlag = true;
+                                                               // Log an ERROR
+                                                               // As this is 
an ERROR, it results from either a bug or malicious action.
+                                                               // If it 
happens very frequently, it indicates either an attack or a serious bug.
+                                                               
Logger.error(this, "Randomizing location: my loc="+myLoc+" but loc="+ploc+" for 
"+pn);
+                                                               break;
+                                                       } else {
+                                                               
Logger.normal(this, "Node "+pn+" has identical location to us, waiting until 
this has persisted for 2 minutes...");
+                                                       }
+                                               }
                                        }
-                                       }
                                     }
                                 }
                                 if(myFlag) {


Reply via email to