I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 784dc0f6 authored by jrandom's avatar jrandom Committed by zzz
Browse files

boot up quicker

parent e80e627f
No related branches found
No related tags found
No related merge requests found
......@@ -67,13 +67,13 @@ public class MultiRouter {
router.setKillVMOnEnd(false);
_routers.add(router);
_log.info("Router " + i + " created from " + args[i]);
try { Thread.sleep(5*1000 + new java.util.Random().nextInt(5)*1000); } catch (InterruptedException ie) {}
try { Thread.sleep(2*1000); } catch (InterruptedException ie) {}
}
for (int i = 0; i < _routers.size(); i++) {
((Router)_routers.get(i)).runRouter();
_log.info("Router " + i + " started");
try { Thread.sleep(4*1000 + new java.util.Random().nextInt(4)*1000); } catch (InterruptedException ie) {}
try { Thread.sleep(2*1000 + new java.util.Random().nextInt(2)*1000); } catch (InterruptedException ie) {}
}
_log.info("All " + _routers.size() + " routers started up");
waitForCompletion();
......@@ -117,4 +117,4 @@ public class MultiRouter {
System.err.println(" to load into the given context. In addition, each routerContextFile");
System.err.println(" in turn is used to boot a router");
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment