Author: toad
Date: 2008-02-09 15:04:29 +0000 (Sat, 09 Feb 2008)
New Revision: 17757
Modified:
trunk/freenet/src/freenet/node/simulator/RealNodeTest.java
Log:
Doh - turn on idealLocations
Modified: trunk/freenet/src/freenet/node/simulator/RealNodeTest.java
===================================================================
--- trunk/freenet/src/freenet/node/simulator/RealNodeTest.java 2008-02-09
15:01:34 UTC (rev 17756)
+++ trunk/freenet/src/freenet/node/simulator/RealNodeTest.java 2008-02-09
15:04:29 UTC (rev 17757)
@@ -23,6 +23,7 @@
*/
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;
@@ -30,6 +31,7 @@
nodes[i].setLocation(loc);
loc += div;
}
+ }
if(forceNeighbourConnections) {
for(int i=0;i<nodes.length;i++) {
int next = (i+1) % nodes.length;