X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/78c37d1780d1243aec405e7f38751e0aa5037c38..c281d400a7c848c061c23bd01300073bac759e04:/examples/gras/all2all/all2all.c diff --git a/examples/gras/all2all/all2all.c b/examples/gras/all2all/all2all.c index f2f2ba1861..df7ada5192 100644 --- a/examples/gras/all2all/all2all.c +++ b/examples/gras/all2all/all2all.c @@ -110,15 +110,19 @@ int sender (int argc,char *argv[]) { /* Wait for receivers to startup */ - gras_os_sleep(1); + gras_os_sleep(.01); /* write 'em */ xbt_dynar_foreach(peers,i,h) { peer = gras_socket_client(h->name,h->port); gras_msg_send(peer,"data",&data); - INFO2(" Sent Data from %s to %s", - gras_os_myname(),h->name); + if (gras_if_SG()) { + INFO2(" Sent Data from %s to %s", gras_os_myname(),h->name); + } else { + INFO0(" Sent Data"); + } + gras_socket_close(peer); }