X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1ecbb4c88462e9ec9be0c830a257da6e9b774a25..e89f9f044e0a5071de93ec27bfca5993b9c86d1f:/examples/msg/chord/chord.c diff --git a/examples/msg/chord/chord.c b/examples/msg/chord/chord.c index 90dd6988fe..ee4a351772 100644 --- a/examples/msg/chord/chord.c +++ b/examples/msg/chord/chord.c @@ -394,7 +394,6 @@ int node(int argc, char *argv[]) // stop the simulation xbt_free(node.fingers); - XBT_INFO("Messages created: %lu", smx_total_comms); return 0; } @@ -507,10 +506,12 @@ static int join(node_t node, int known_id) XBT_INFO("Joining the ring with id %d, knowing node %d", node->id, known_id); set_predecessor(node, -1); // no predecessor (yet) + /* int i; for (i = 0; i < nb_bits; i++) { set_finger(node, i, known_id); } + */ int successor_id = remote_find_successor(node, known_id, node->id); if (successor_id == -1) { @@ -915,7 +916,7 @@ int main(int argc, char *argv[]) XBT_DEBUG("Set timeout to %d", timeout); } else { - xbt_die(bprintf("Invalid chord option '%s'", options[0])); + xbt_die("Invalid chord option '%s'", options[0]); } } options++; @@ -935,7 +936,7 @@ int main(int argc, char *argv[]) xbt_os_timer_start(timer); MSG_error_t res = MSG_main(); xbt_os_timer_stop(timer); - XBT_CRITICAL("Simulation time %lf", xbt_os_timer_elapsed(timer)); + XBT_CRITICAL("Simulation time %lf, messages created: %ld", xbt_os_timer_elapsed(timer), smx_total_comms); XBT_INFO("Simulated time: %g", MSG_get_clock()); MSG_clean();