A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not use configure to generate the test script, factorize some Makefile.am stuff...
[simgrid.git]
/
examples
/
gras
/
all2all
/
all2all.c
diff --git
a/examples/gras/all2all/all2all.c
b/examples/gras/all2all/all2all.c
index
f2f2ba1
..
df7ada5
100644
(file)
--- 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 */
/* Wait for receivers to startup */
- gras_os_sleep(1);
+ gras_os_sleep(
.0
1);
/* write 'em */
xbt_dynar_foreach(peers,i,h) {
peer = gras_socket_client(h->name,h->port);
gras_msg_send(peer,"data",&data);
/* 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);
}
gras_socket_close(peer);
}