From ababce488177efbcd1249aee6a436a98b5f0775f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Baptiste=20Herv=C3=A9?= Date: Fri, 10 Aug 2012 14:31:48 +0200 Subject: [PATCH] Platform generation: fex modification of the master/slave example Change the topology generation parameter, so the program will have to retry the topology generation, as the first produced graph is not connected. Correct a typo mistake. --- examples/msg/masterslave/masterslave_platfgen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/msg/masterslave/masterslave_platfgen.c b/examples/msg/masterslave/masterslave_platfgen.c index f3a932cc0f..e26fb1d802 100644 --- a/examples/msg/masterslave/masterslave_platfgen.c +++ b/examples/msg/masterslave/masterslave_platfgen.c @@ -182,8 +182,8 @@ int main(int argc, char **argv) { max_tries--; XBT_INFO("creating links..."); platf_graph_clear_links(); - platf_graph_interconnect_uniform(0.15); //Unrealistic, but simple - XBT_INFO("done. Check connectivity..."); + platf_graph_interconnect_uniform(0.07); //Unrealistic, but simple + XBT_INFO("done. Check connectedness..."); connected = platf_graph_is_connected(); XBT_INFO("Is it connected : %s", connected ? "yes" : (max_tries ? "no, retrying" : "no")); } while(!connected && max_tries); -- 2.20.1