diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-14 13:23:17 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2012-10-14 13:23:17 +0000 |
commit | e1bdd0f567da500d8ae723837b2c1e99bf992d4f (patch) | |
tree | 5cf22c5e1b48c20b1c951fe5da71e72ec2b8a925 /src/testbed/test_testbed_api_topology.c | |
parent | 4f541bbf6b5767cbba4e6702c6a79bc8a3f1132e (diff) | |
download | gnunet-e1bdd0f567da500d8ae723837b2c1e99bf992d4f.tar.gz gnunet-e1bdd0f567da500d8ae723837b2c1e99bf992d4f.zip |
Random graph topology
Diffstat (limited to 'src/testbed/test_testbed_api_topology.c')
-rw-r--r-- | src/testbed/test_testbed_api_topology.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/testbed/test_testbed_api_topology.c b/src/testbed/test_testbed_api_topology.c index 27f508cd9..9679e0cdb 100644 --- a/src/testbed/test_testbed_api_topology.c +++ b/src/testbed/test_testbed_api_topology.c | |||
@@ -31,7 +31,7 @@ | |||
31 | /** | 31 | /** |
32 | * Number of peers we want to start | 32 | * Number of peers we want to start |
33 | */ | 33 | */ |
34 | #define NUM_PEERS 5 | 34 | #define NUM_PEERS 100 |
35 | 35 | ||
36 | /** | 36 | /** |
37 | * Array of peers | 37 | * Array of peers |
@@ -85,7 +85,7 @@ controller_event_cb (void *cls, | |||
85 | { | 85 | { |
86 | case GNUNET_TESTBED_ET_CONNECT: | 86 | case GNUNET_TESTBED_ET_CONNECT: |
87 | overlay_connects++; | 87 | overlay_connects++; |
88 | if ((NUM_PEERS - 1) == overlay_connects) | 88 | if ((NUM_PEERS) == overlay_connects) |
89 | { | 89 | { |
90 | result = GNUNET_OK; | 90 | result = GNUNET_OK; |
91 | GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); | 91 | GNUNET_SCHEDULER_add_now (&do_shutdown, NULL); |
@@ -125,7 +125,8 @@ test_master (void *cls, unsigned int num_peers, | |||
125 | peers = peers_; | 125 | peers = peers_; |
126 | overlay_connects = 0; | 126 | overlay_connects = 0; |
127 | op = GNUNET_TESTBED_overlay_configure_topology (NULL, NUM_PEERS, peers, | 127 | op = GNUNET_TESTBED_overlay_configure_topology (NULL, NUM_PEERS, peers, |
128 | GNUNET_TESTBED_TOPOLOGY_LINE); | 128 | GNUNET_TESTBED_TOPOLOGY_ERDOS_RENYI, |
129 | NUM_PEERS); | ||
129 | GNUNET_assert (NULL != op); | 130 | GNUNET_assert (NULL != op); |
130 | } | 131 | } |
131 | 132 | ||