From: paul bedaride Date: Tue, 13 Nov 2012 10:58:03 +0000 (+0100) Subject: Correct a bug in kademlia X-Git-Tag: v3_9_rc1~91^2~112 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/4f3a160841e4b3ad438549814da64aa62c114f45 Correct a bug in kademlia --- diff --git a/doc/dev_guide/doxygen/simgrid.doc b/doc/dev_guide/doxygen/simgrid.doc index 04660f5756..adb6cf36fb 100644 --- a/doc/dev_guide/doxygen/simgrid.doc +++ b/doc/dev_guide/doxygen/simgrid.doc @@ -7,7 +7,6 @@ We start to put TAGS in simgrid source code for having tutorials to see where is \li new tags in xml files \section simgrid_dev_guide_api How to add a new MSG function? - Search for expression \"TUTORIAL: New API\". \verbatim user@caraja:~/workspace/simgrid/src$ cg "TUTORIAL: New API" diff --git a/examples/msg/kademlia/kademlia.tesh b/examples/msg/kademlia/kademlia.tesh index b6b693d991..db69e3c547 100644 --- a/examples/msg/kademlia/kademlia.tesh +++ b/examples/msg/kademlia/kademlia.tesh @@ -17,7 +17,7 @@ $ $SG_TEST_EXENV ${bindir:=.}/kademlia ${srcdir:=.}/../msg_platform.xml ${srcdir > [ 0.000000] (11:node@Tanguay) Hi, I'm going to join the network with id 000003ff > [ 0.000000] (12:node@Morin) Hi, I'm going to join the network with id 000007ff > [ 0.000000] (13:node@Ethernet) Hi, I'm going to join the network with id 00000fff -> [900.000000] ( 0:@) Messages created: 1046 +> [900.000000] ( 0:@) Messages created: 1277 > [900.000000] ( 0:@) Simulated time: 900 > [900.000000] ( 1:node@Jacquelin) 8/8 FIND_NODE have succeeded > [900.000000] ( 2:node@Boivin) 7/7 FIND_NODE have succeeded diff --git a/examples/msg/kademlia/node.h b/examples/msg/kademlia/node.h index 274a3d29bc..2db9a51bfe 100644 --- a/examples/msg/kademlia/node.h +++ b/examples/msg/kademlia/node.h @@ -31,7 +31,7 @@ typedef struct s_node { msg_comm_t receive_comm; //current receiving communication. msg_task_t task_received; //current task being received - char mailbox[MAILBOX_NAME_SIZE]; //node mailbox + char mailbox[MAILBOX_NAME_SIZE+1]; //node mailbox unsigned int find_node_success; //Number of find_node which have succeeded. unsigned int find_node_failed; //Number of find_node which have failed.