aboutsummaryrefslogtreecommitdiff
path: root/src/testbed/testbed_api_testbed.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-01-23 15:18:43 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-01-23 15:18:43 +0000
commitd6a27b576d197ac823e8494f351d43a78125a35f (patch)
treef94d2bcd3d3432bb6f429547faa0506982f8b839 /src/testbed/testbed_api_testbed.c
parentcc951a596e18468397b338d4d4adf1e03751c24a (diff)
downloadgnunet-d6a27b576d197ac823e8494f351d43a78125a35f.tar.gz
gnunet-d6a27b576d197ac823e8494f351d43a78125a35f.zip
- print summary of established links
Diffstat (limited to 'src/testbed/testbed_api_testbed.c')
-rw-r--r--src/testbed/testbed_api_testbed.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c
index a03c23d15..24f17bc75 100644
--- a/src/testbed/testbed_api_testbed.c
+++ b/src/testbed/testbed_api_testbed.c
@@ -551,7 +551,8 @@ call_master (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
551 551
552 if (NULL != rc->topology_operation) 552 if (NULL != rc->topology_operation)
553 { 553 {
554 GNUNET_TESTBED_operation_done (rc->topology_operation); 554 DEBUG ("Overlay topology generated in %s\n", prof_time (rc));
555 GNUNET_TESTBED_operation_done (rc->topology_operation);
555 rc->topology_operation = NULL; 556 rc->topology_operation = NULL;
556 } 557 }
557 if (NULL != rc->test_master) 558 if (NULL != rc->test_master)
@@ -722,7 +723,7 @@ call_cc:
722 DEBUG ("%u peers started in %s\n", rc->num_peers, 723 DEBUG ("%u peers started in %s\n", rc->num_peers,
723 prof_time (rc)); 724 prof_time (rc));
724 if (GNUNET_TESTBED_TOPOLOGY_NONE != rc->topology) 725 if (GNUNET_TESTBED_TOPOLOGY_NONE != rc->topology)
725 { 726 {
726 if ( (GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI == rc->topology) 727 if ( (GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI == rc->topology)
727 || (GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD_RING == rc->topology) 728 || (GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD_RING == rc->topology)
728 || (GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD == rc->topology)) 729 || (GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD == rc->topology))
@@ -760,7 +761,11 @@ call_cc:
760 LOG (GNUNET_ERROR_TYPE_WARNING, 761 LOG (GNUNET_ERROR_TYPE_WARNING,
761 "Not generating topology. Check number of peers\n"); 762 "Not generating topology. Check number of peers\n");
762 else 763 else
764 {
765 DEBUG ("Creating overlay topology\n");
766 rc->pstart_time = GNUNET_TIME_absolute_get ();
763 return; 767 return;
768 }
764 } 769 }
765 rc->state = RC_READY; 770 rc->state = RC_READY;
766 GNUNET_SCHEDULER_add_continuation (&call_master, rc, 771 GNUNET_SCHEDULER_add_continuation (&call_master, rc,