From 3b783e10af83330955ea73f4d50831a59bacf3b2 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Mon, 22 Oct 2012 21:30:14 +0000 Subject: fixes --- src/testbed/gnunet-testbed-profiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/testbed/gnunet-testbed-profiler.c') diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 8e02a55f8..5a674c89d 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c @@ -333,7 +333,7 @@ peer_churn_cb (void *cls, const char *emsg) num_peers, ((double) prof_time.rel_value) / 1000.00); fflush (stdout); result = GNUNET_OK; - if (0 == num_links) + if ((0 == num_links) && (topology == GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI)) { shutdown_task = GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); return; @@ -802,7 +802,7 @@ main (int argc, char *const *argv) gettext_noop ("Try to acheive TOPOLOGY. This options takes either CLIQUE " "or RANDOM. For CLIQUE the parameter -n is ignored. The " "default is to acheive a random graph topology."), - GNUNET_YES, &GNUNET_GETOPT_set_string, &topology }, + GNUNET_YES, &set_topology, &topology }, GNUNET_GETOPT_OPTION_END }; int ret; -- cgit v1.2.3