diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-05-24 12:20:55 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-05-24 12:20:55 +0000 |
commit | 11f22e574f38ecb8698f6b457f39d84632aedf6d (patch) | |
tree | 93f05c080bc13329bcceccd76f18f71e7d77e6ea | |
parent | e3fa646c6ee35efefafa9c19d1550530f46eb62d (diff) | |
download | gnunet-11f22e574f38ecb8698f6b457f39d84632aedf6d.tar.gz gnunet-11f22e574f38ecb8698f6b457f39d84632aedf6d.zip |
- do not create peers on the island controller
-rw-r--r-- | src/testbed/testbed_api_testbed.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) | |||
839 | #if ENABLE_LL | 839 | #if ENABLE_LL |
840 | if (0 != rc->nislands) | 840 | if (0 != rc->nislands) |
841 | { | 841 | { |
842 | island = rc->islands[icnt]; | 842 | island = rc->islands[icnt]; |
843 | if (hcnt == island->nhosts) | 843 | if (hcnt == island->nhosts) |
844 | { | 844 | { |
845 | icnt++; | 845 | icnt++; |
@@ -848,6 +848,8 @@ create_peers (struct RunContext *rc) | |||
848 | island = rc->islands[icnt]; | 848 | island = rc->islands[icnt]; |
849 | hcnt = 0; | 849 | hcnt = 0; |
850 | } | 850 | } |
851 | if ( (0 == hcnt) && (1 < island->nhosts) ) | ||
852 | hcnt = 1; | ||
851 | GNUNET_assert (icnt < rc->nislands); | 853 | GNUNET_assert (icnt < rc->nislands); |
852 | GNUNET_assert (hcnt < island->nhosts); | 854 | GNUNET_assert (hcnt < island->nhosts); |
853 | GNUNET_assert (NULL != island->hosts[hcnt]); | 855 | GNUNET_assert (NULL != island->hosts[hcnt]); |