-fixing DBZ
authorChristian Grothoff <christian@grothoff.org>
Thu, 10 May 2012 18:52:04 +0000 (18:52 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 10 May 2012 18:52:04 +0000 (18:52 +0000)
src/nse/gnunet-nse-profiler.c

index a10d237918637252dca0fd534b1db6628ab015ed..4748ed370d003e53798822f37d8810045aadf1e0 100644 (file)
@@ -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,