diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-18 15:53:47 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-18 15:53:47 +0000 |
commit | 47032db495464716a0d0c94ce4c830e146ceee9c (patch) | |
tree | a5607d999045b4db95c2dab3102e4da5990a1dcb /src | |
parent | 55e893b9ebda8d834bfa6afd76b1afc28d5e7345 (diff) | |
download | gnunet-47032db495464716a0d0c94ce4c830e146ceee9c.tar.gz gnunet-47032db495464716a0d0c94ce4c830e146ceee9c.zip |
print statistics
Diffstat (limited to 'src')
-rw-r--r-- | src/testbed/gnunet-testbed-profiler.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testbed/gnunet-testbed-profiler.c b/src/testbed/gnunet-testbed-profiler.c index 04da08076..3a62ee9bd 100644 --- a/src/testbed/gnunet-testbed-profiler.c +++ b/src/testbed/gnunet-testbed-profiler.c | |||
@@ -295,8 +295,8 @@ peer_churn_cb (void *cls, const char *emsg) | |||
295 | if (++started_peers == num_peers) | 295 | if (++started_peers == num_peers) |
296 | { | 296 | { |
297 | prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time); | 297 | prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time); |
298 | printf ("All peers started successfully in %.2f seconds\n", | 298 | printf ("%u peers started successfully in %.2f seconds\n", |
299 | ((double) prof_time.rel_value) / 1000.00); | 299 | num_peers, ((double) prof_time.rel_value) / 1000.00); |
300 | result = GNUNET_OK; | 300 | result = GNUNET_OK; |
301 | if (0 == num_links) | 301 | if (0 == num_links) |
302 | { | 302 | { |
@@ -351,8 +351,8 @@ peer_create_cb (void *cls, struct GNUNET_TESTBED_Peer *peer, const char *emsg) | |||
351 | if (++created_peers == num_peers) | 351 | if (++created_peers == num_peers) |
352 | { | 352 | { |
353 | prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time); | 353 | prof_time = GNUNET_TIME_absolute_get_duration (prof_start_time); |
354 | printf ("All peers created successfully in %.2f seconds\n", | 354 | printf ("%u peers created successfully in %.2f seconds\n", |
355 | ((double) prof_time.rel_value) / 1000.00); | 355 | num_peers, ((double) prof_time.rel_value) / 1000.00); |
356 | /* Now peers are to be started */ | 356 | /* Now peers are to be started */ |
357 | state = STATE_PEERS_STARTING; | 357 | state = STATE_PEERS_STARTING; |
358 | prof_start_time = GNUNET_TIME_absolute_get (); | 358 | prof_start_time = GNUNET_TIME_absolute_get (); |
@@ -407,7 +407,7 @@ controller_event_cb (void *cls, | |||
407 | /* Proceed to start peers */ | 407 | /* Proceed to start peers */ |
408 | if (++slaves_started == num_hosts - 1) | 408 | if (++slaves_started == num_hosts - 1) |
409 | { | 409 | { |
410 | printf ("All slaves started successfully\n"); | 410 | printf ("%u controllers started successfully\n", num_hosts); |
411 | state = STATE_PEERS_CREATING; | 411 | state = STATE_PEERS_CREATING; |
412 | prof_start_time = GNUNET_TIME_absolute_get (); | 412 | prof_start_time = GNUNET_TIME_absolute_get (); |
413 | peers = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Peer *) | 413 | peers = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_Peer *) |