[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25865 - gnunet/src/testbed
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25865 - gnunet/src/testbed |
Date: |
Wed, 23 Jan 2013 16:18:43 +0100 |
Author: harsha
Date: 2013-01-23 16:18:43 +0100 (Wed, 23 Jan 2013)
New Revision: 25865
Modified:
gnunet/src/testbed/gnunet-testbed-profiler.c
gnunet/src/testbed/testbed_api_testbed.c
Log:
- print summary of established links
Modified: gnunet/src/testbed/gnunet-testbed-profiler.c
===================================================================
--- gnunet/src/testbed/gnunet-testbed-profiler.c 2013-01-23 14:40:42 UTC
(rev 25864)
+++ gnunet/src/testbed/gnunet-testbed-profiler.c 2013-01-23 15:18:43 UTC
(rev 25865)
@@ -141,6 +141,7 @@
if (GNUNET_YES == printed_already)
return;
printed_already = GNUNET_YES;
+ printf ("%u links succeeded\n", established_links);
printf ("%u links failed due to timeouts\n", failed_links);
}
@@ -166,7 +167,7 @@
failed_links++;
if (++cont_fails > num_cont_fails)
{
- printf ("\nAborting due to very high failure rate");
+ printf ("\nAborting due to very high failure rate\n");
print_overlay_links_summary ();
GNUNET_SCHEDULER_cancel (abort_task);
abort_task = GNUNET_SCHEDULER_add_now (&do_abort, NULL);
@@ -203,7 +204,9 @@
struct GNUNET_TESTBED_Peer **peers)
{
result = GNUNET_OK;
- fprintf (stdout, "\nTestbed running, waiting for keystroke to shut down\n");
+ fprintf (stdout, "\n");
+ print_overlay_links_summary ();
+ fprintf (stdout, "Testbed running, waiting for keystroke to shut down\n");
fflush (stdout);
(void) getc (stdin);
fprintf (stdout, "Shutting down. Please wait\n");
Modified: gnunet/src/testbed/testbed_api_testbed.c
===================================================================
--- gnunet/src/testbed/testbed_api_testbed.c 2013-01-23 14:40:42 UTC (rev
25864)
+++ gnunet/src/testbed/testbed_api_testbed.c 2013-01-23 15:18:43 UTC (rev
25865)
@@ -551,7 +551,8 @@
if (NULL != rc->topology_operation)
{
- GNUNET_TESTBED_operation_done (rc->topology_operation);
+ DEBUG ("Overlay topology generated in %s\n", prof_time (rc));
+ GNUNET_TESTBED_operation_done (rc->topology_operation);
rc->topology_operation = NULL;
}
if (NULL != rc->test_master)
@@ -722,7 +723,7 @@
DEBUG ("%u peers started in %s\n", rc->num_peers,
prof_time (rc));
if (GNUNET_TESTBED_TOPOLOGY_NONE != rc->topology)
- {
+ {
if ( (GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI == rc->topology)
|| (GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD_RING == rc->topology)
|| (GNUNET_TESTBED_TOPOLOGY_SMALL_WORLD == rc->topology))
@@ -760,7 +761,11 @@
LOG (GNUNET_ERROR_TYPE_WARNING,
"Not generating topology. Check number of peers\n");
else
+ {
+ DEBUG ("Creating overlay topology\n");
+ rc->pstart_time = GNUNET_TIME_absolute_get ();
return;
+ }
}
rc->state = RC_READY;
GNUNET_SCHEDULER_add_continuation (&call_master, rc,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25865 - gnunet/src/testbed,
gnunet <=