aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/gnunet-testbed-profiler.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2012-10-14 16:48:49 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2012-10-14 16:48:49 +0000
commit3e5b028393108ce4708bec4a60cdf3e6df90c557 (patch)
tree8460f7c78b028a14aa90dae52bce817449db3db2 /src/testbed/gnunet-testbed-profiler.c
parent9c41976bd9936bc18d51e787c706aefb86596451 (diff)
downloadgnunet-3e5b028393108ce4708bec4a60cdf3e6df90c557.tar.gz
gnunet-3e5b028393108ce4708bec4a60cdf3e6df90c557.zip
output status for connects
Diffstat (limited to 'src/testbed/gnunet-testbed-profiler.c')
-rw-r--r--src/testbed/gnunet-testbed-profiler.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c
index 675912e13..6efe27338 100644
--- a/src/testbed/gnunet-testbed-profiler.c
+++ b/src/testbed/gnunet-testbed-profiler.c
@@ -451,13 +451,16 @@ controller_event_cb (void *cls,
451 { 451 {
452 static unsigned int established_links; 452 static unsigned int established_links;
453 453
454 if (0 == established_links)
455 printf ("Establishing links\n");
456 else
457 printf (".");
454 if (++established_links == num_links) 458 if (++established_links == num_links)
455 { 459 {
456 prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time); 460 prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time);
457 printf ("%u links established in %.2f seconds\n", 461 printf ("%u links established in %.2f seconds\n",
458 num_links, ((double) prof_time.rel_value) / 1000.00); 462 num_links, ((double) prof_time.rel_value) / 1000.00);
459 GNUNET_TESTBED_operation_done (topology_op); 463 result = GNUNET_OK;
460 topology_op = NULL;
461 GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); 464 GNUNET_SCHEDULER_add_now (&do_shutdown, NULL);
462 } 465 }
463 } 466 }