aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-03-17 11:02:26 +0000
committerBart Polot <bart@net.in.tum.de>2014-03-17 11:02:26 +0000
commit68c9ae2ae6298cdd2fa555c440deb137c7fc822c (patch)
treee6e6ced8107b3ae290bb3a2777fe0fec1f0d6fc1 /src
parent09a4a6bf590ae8e1d85eb519d915b0678dbdef94 (diff)
downloadgnunet-68c9ae2ae6298cdd2fa555c440deb137c7fc822c.tar.gz
gnunet-68c9ae2ae6298cdd2fa555c440deb137c7fc822c.zip
- fix infinite loop
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-mesh-profiler.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesh/gnunet-mesh-profiler.c b/src/mesh/gnunet-mesh-profiler.c
index 1027cba26..234d4f0e2 100644
--- a/src/mesh/gnunet-mesh-profiler.c
+++ b/src/mesh/gnunet-mesh-profiler.c
@@ -394,9 +394,9 @@ adjust_running_peers (unsigned int target)
394 { 394 {
395 do { 395 do {
396 r = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, TOTAL_PEERS); 396 r = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK, TOTAL_PEERS);
397 } while (!run == peers[r].up); 397 } while (peers[r].up == run);
398 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "St%s peer %\n", 398 GNUNET_log (GNUNET_ERROR_TYPE_INFO, "St%s peer %u: %s\n",
399 run ? "arting" : "opping", GNUNET_i2s (&peers[r].id)); 399 run ? "arting" : "opping", r, GNUNET_i2s (&peers[r].id));
400 op = GNUNET_TESTBED_peer_manage_service (&peers[r], testbed_handles[r], 400 op = GNUNET_TESTBED_peer_manage_service (&peers[r], testbed_handles[r],
401 "mesh", NULL, NULL, run); 401 "mesh", NULL, NULL, run);
402 GNUNET_break (NULL != op); 402 GNUNET_break (NULL != op);