X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0ec9023d3fcc96b110d4b7a4c3b16cdbb6e827c0..dccf1b41e9c7b5a696f01abceaa2779fe65f154f:/examples/java/dht/chord/Node.java diff --git a/examples/java/dht/chord/Node.java b/examples/java/dht/chord/Node.java index 2cb52d8899..835c316977 100644 --- a/examples/java/dht/chord/Node.java +++ b/examples/java/dht/chord/Node.java @@ -44,8 +44,8 @@ public class Node extends Process { double nextCheckPredecessorDate = initTime + Common.PERIODIC_CHECK_PREDECESSOR_DELAY; double nextLookupDate = initTime + Common.PERIODIC_LOOKUP_DELAY; - id = Integer.valueOf(args[0]); - mailbox = Integer.toString(id); + mailbox = args[0]; + id = Integer.parseInt(args[0]); fingers = new int[Common.NB_BITS]; for (i = 0; i < Common.NB_BITS; i++) { @@ -61,7 +61,7 @@ public class Node extends Process { } else { int knownId = Integer.valueOf(args[1]); deadline = Integer.valueOf(args[3]); - //Msg.info("Hey! Let's join the system with the id " + id + "."); + Msg.debug("Hey! Let's join the system with the id " + id + "."); joinSuccess = join(knownId); }