aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-03-01 02:43:22 +0000
committerBart Polot <bart@net.in.tum.de>2013-03-01 02:43:22 +0000
commitdb1af422f21e61030a12e043d22bf8bc6391d269 (patch)
treeadfc67829094b7e90d1e3069ddc13ae1f1d36598 /src
parentd89166c7aae06760f730d17718f463535ee34915 (diff)
downloadgnunet-db1af422f21e61030a12e043d22bf8bc6391d269.tar.gz
gnunet-db1af422f21e61030a12e043d22bf8bc6391d269.zip
- logging, cleanup
Diffstat (limited to 'src')
-rw-r--r--src/regex/gnunet-regex-profiler.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/regex/gnunet-regex-profiler.c b/src/regex/gnunet-regex-profiler.c
index a81f63b61..230778338 100644
--- a/src/regex/gnunet-regex-profiler.c
+++ b/src/regex/gnunet-regex-profiler.c
@@ -37,7 +37,7 @@
37#include "gnunet_testbed_service.h" 37#include "gnunet_testbed_service.h"
38 38
39#define FIND_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 90) 39#define FIND_TIMEOUT GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 90)
40#define SEARCHES_IN_PARALLEL 2 40#define SEARCHES_IN_PARALLEL 1
41 41
42/** 42/**
43 * DLL of operations 43 * DLL of operations
@@ -301,16 +301,11 @@ static unsigned int linking_factor;
301static unsigned int num_links; 301static unsigned int num_links;
302 302
303/** 303/**
304 * Number of times we try overlay connect operations 304 * Number of connect operations that have failed, candidates to retry
305 */ 305 */
306static unsigned int retry_links; 306static unsigned int retry_links;
307 307
308/** 308/**
309 * Continuous failures during overlay connect operations
310 */
311static unsigned int cont_fails;
312
313/**
314 * Global testing status 309 * Global testing status
315 */ 310 */
316static int result; 311static int result;
@@ -846,7 +841,7 @@ regex_found_handler (void *cls,
846 { 841 {
847 prof_time = GNUNET_TIME_absolute_get_duration (peer->prof_start_time); 842 prof_time = GNUNET_TIME_absolute_get_duration (peer->prof_start_time);
848 843
849 printf ("String %s successfully matched on peer %u after %s (%i/%i) (%u||)\n", 844 printf ("String %s found on peer %u after %s (%i/%i) (%u||)\n",
850 peer->search_str, peer->id, GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO), 845 peer->search_str, peer->id, GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO),
851 peers_found, num_search_strings, parallel_searches); 846 peers_found, num_search_strings, parallel_searches);
852 fflush (stdout); 847 fflush (stdout);
@@ -1634,7 +1629,7 @@ controller_event_cb (void *cls,
1634 /* break; */ 1629 /* break; */
1635 case GNUNET_TESTBED_ET_CONNECT: 1630 case GNUNET_TESTBED_ET_CONNECT:
1636 { 1631 {
1637 char output_buffer[512]; 1632 char output_buffer[1024];
1638 size_t size; 1633 size_t size;
1639 1634
1640 if (0 == established_links) 1635 if (0 == established_links)
@@ -1666,9 +1661,9 @@ controller_event_cb (void *cls,
1666 "Time to establish links: %s\nLinking failures: %u\n" 1661 "Time to establish links: %s\nLinking failures: %u\n"
1667 "path compression length: %u\n# of search strings: %u\n", 1662 "path compression length: %u\n# of search strings: %u\n",
1668 num_peers, 1663 num_peers,
1669 (established_links - cont_fails), 1664 (established_links - retry_links),
1670 GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO), 1665 GNUNET_STRINGS_relative_time_to_string (prof_time, GNUNET_NO),
1671 cont_fails, 1666 retry_links,
1672 max_path_compression, 1667 max_path_compression,
1673 num_search_strings); 1668 num_search_strings);
1674 1669