Author: toad
Date: 2008-02-09 15:04:46 +0000 (Sat, 09 Feb 2008)
New Revision: 17758

Modified:
   trunk/freenet/src/freenet/node/simulator/RealNodeTest.java
Log:
indenting

Modified: trunk/freenet/src/freenet/node/simulator/RealNodeTest.java
===================================================================
--- trunk/freenet/src/freenet/node/simulator/RealNodeTest.java  2008-02-09 
15:04:29 UTC (rev 17757)
+++ trunk/freenet/src/freenet/node/simulator/RealNodeTest.java  2008-02-09 
15:04:46 UTC (rev 17758)
@@ -24,14 +24,14 @@
        static void makeKleinbergNetwork (Node[] nodes, boolean idealLocations, 
int degree, boolean forceNeighbourConnections)
        {
                if(idealLocations) {
-               // First set the locations up so we don't spend a long time 
swapping just to stabilise each network.
-               double div = 1.0 / (nodes.length + 1);
-               double loc = 0.0;
-               for (int i=0; i<nodes.length; i++) {
-                       nodes[i].setLocation(loc);
-                       loc += div;
+                       // First set the locations up so we don't spend a long 
time swapping just to stabilise each network.
+                       double div = 1.0 / (nodes.length + 1);
+                       double loc = 0.0;
+                       for (int i=0; i<nodes.length; i++) {
+                               nodes[i].setLocation(loc);
+                               loc += div;
+                       }
                }
-               }
                if(forceNeighbourConnections) {
                        for(int i=0;i<nodes.length;i++) {
                                int next = (i+1) % nodes.length;


Reply via email to