From: Sree Harsha Totakura Date: Fri, 24 May 2013 12:20:55 +0000 (+0000) Subject: - do not create peers on the island controller X-Git-Tag: initial-import-from-subversion-38251~8913 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=11f22e574f38ecb8698f6b457f39d84632aedf6d;p=oweals%2Fgnunet.git - do not create peers on the island controller --- diff --git a/src/testbed/testbed_api_testbed.c b/src/testbed/testbed_api_testbed.c index 7f7627858..98b8eaad1 100644 --- a/src/testbed/testbed_api_testbed.c +++ b/src/testbed/testbed_api_testbed.c @@ -839,7 +839,7 @@ create_peers (struct RunContext *rc) #if ENABLE_LL if (0 != rc->nislands) { - island = rc->islands[icnt]; + island = rc->islands[icnt]; if (hcnt == island->nhosts) { icnt++; @@ -848,6 +848,8 @@ create_peers (struct RunContext *rc) island = rc->islands[icnt]; hcnt = 0; } + if ( (0 == hcnt) && (1 < island->nhosts) ) + hcnt = 1; GNUNET_assert (icnt < rc->nislands); GNUNET_assert (hcnt < island->nhosts); GNUNET_assert (NULL != island->hosts[hcnt]);