From: Christian Grothoff Date: Thu, 10 May 2012 18:52:04 +0000 (+0000) Subject: -fixing DBZ X-Git-Tag: initial-import-from-subversion-38251~13537 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2bf739eadd89fcc7f414995ad4a535e9f38e432c;p=oweals%2Fgnunet.git -fixing DBZ --- diff --git a/src/nse/gnunet-nse-profiler.c b/src/nse/gnunet-nse-profiler.c index a10d23791..4748ed370 100644 --- a/src/nse/gnunet-nse-profiler.c +++ b/src/nse/gnunet-nse-profiler.c @@ -371,7 +371,9 @@ connect_nse_service (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) #endif for (i = 0; i < num_peers; i++) { - if ((connection_limit > 0) && (i % (num_peers / connection_limit) != 0)) + if ((connection_limit > 0) && + (num_peers > connection_limit) && + (i % (num_peers / connection_limit) != 0)) continue; #if VERBOSE GNUNET_log (GNUNET_ERROR_TYPE_WARNING,