diff options
Diffstat (limited to 'src/testbed')
-rw-r--r-- | src/testbed/gnunet-testbed-profiler.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
333 | num_peers, ((double) prof_time.rel_value) / 1000.00); | 333 | num_peers, ((double) prof_time.rel_value) / 1000.00); |
334 | fflush (stdout); | 334 | fflush (stdout); |
335 | result = GNUNET_OK; | 335 | result = GNUNET_OK; |
336 | if (0 == num_links) | 336 | if ((0 == num_links) && (topology == GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI)) |
337 | { | 337 | { |
338 | shutdown_task = GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); | 338 | shutdown_task = GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); |
339 | return; | 339 | return; |
@@ -802,7 +802,7 @@ main (int argc, char *const *argv) | |||
802 | gettext_noop ("Try to acheive TOPOLOGY. This options takes either CLIQUE " | 802 | gettext_noop ("Try to acheive TOPOLOGY. This options takes either CLIQUE " |
803 | "or RANDOM. For CLIQUE the parameter -n is ignored. The " | 803 | "or RANDOM. For CLIQUE the parameter -n is ignored. The " |
804 | "default is to acheive a random graph topology."), | 804 | "default is to acheive a random graph topology."), |
805 | GNUNET_YES, &GNUNET_GETOPT_set_string, &topology }, | 805 | GNUNET_YES, &set_topology, &topology }, |
806 | GNUNET_GETOPT_OPTION_END | 806 | GNUNET_GETOPT_OPTION_END |
807 | }; | 807 | }; |
808 | int ret; | 808 | int ret; |