diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-08-07 06:34:19 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-08-07 06:34:19 +0000 |
commit | 4a7ea21113603575b97c37eea5c4ee93d1c376bc (patch) | |
tree | 8dcb8b08d48a87097634e83a89f33ccdf5f18019 /src/mesh/test_mesh_small.c | |
parent | 5133e679d1c77f276ea7a23f2c054f61fa61ac08 (diff) | |
download | gnunet-4a7ea21113603575b97c37eea5c4ee93d1c376bc.tar.gz gnunet-4a7ea21113603575b97c37eea5c4ee93d1c376bc.zip |
Greetings from San Francisco.
Connect_by_type registration and search
Local data delivery
Fixes
Tests
Diffstat (limited to 'src/mesh/test_mesh_small.c')
-rw-r--r-- | src/mesh/test_mesh_small.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/mesh/test_mesh_small.c b/src/mesh/test_mesh_small.c index b5c3939f8..c60e2c57e 100644 --- a/src/mesh/test_mesh_small.c +++ b/src/mesh/test_mesh_small.c | |||
@@ -88,11 +88,6 @@ static unsigned long long current_round; | |||
88 | static unsigned long long peers_next_round; | 88 | static unsigned long long peers_next_round; |
89 | 89 | ||
90 | /** | 90 | /** |
91 | * Maximum number of connections to NSE services. | ||
92 | */ | ||
93 | static unsigned long long connection_limit; | ||
94 | |||
95 | /** | ||
96 | * Total number of connections in the whole network. | 91 | * Total number of connections in the whole network. |
97 | */ | 92 | */ |
98 | static unsigned int total_connections; | 93 | static unsigned int total_connections; |
@@ -202,7 +197,7 @@ connect_mesh_service (void *cls, | |||
202 | #endif | 197 | #endif |
203 | for (i = 0; i < num_peers; i++) | 198 | for (i = 0; i < num_peers; i++) |
204 | { | 199 | { |
205 | if ((connection_limit > 0) && (i % (num_peers / connection_limit) != 0)) | 200 | // if ((connection_limit > 0) && (i % (num_peers / connection_limit) != 0)) |
206 | continue; | 201 | continue; |
207 | #if VERBOSE | 202 | #if VERBOSE |
208 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "test_mesh_small: connecting to mesh service of peer %d\n", i); | 203 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "test_mesh_small: connecting to mesh service of peer %d\n", i); |
@@ -549,13 +544,6 @@ run (void *cls, | |||
549 | return; | 544 | return; |
550 | } | 545 | } |
551 | 546 | ||
552 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number (testing_cfg, | ||
553 | "test_mesh_small", "connection_limit", | ||
554 | &connection_limit)) | ||
555 | { | ||
556 | connection_limit = 0; | ||
557 | } | ||
558 | |||
559 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (testing_cfg, | 547 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (testing_cfg, |
560 | "testing", "topology_output_file", | 548 | "testing", "topology_output_file", |
561 | &topology_file)) | 549 | &topology_file)) |