gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r32738 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32738 - gnunet/src/mesh
Date: Fri, 21 Mar 2014 19:44:46 +0100

Author: bartpolot
Date: 2014-03-21 19:44:46 +0100 (Fri, 21 Mar 2014)
New Revision: 32738

Modified:
   gnunet/src/mesh/gnunet-mesh-profiler.c
Log:
- check early

Modified: gnunet/src/mesh/gnunet-mesh-profiler.c
===================================================================
--- gnunet/src/mesh/gnunet-mesh-profiler.c      2014-03-21 18:44:45 UTC (rev 
32737)
+++ gnunet/src/mesh/gnunet-mesh-profiler.c      2014-03-21 18:44:46 UTC (rev 
32738)
@@ -913,13 +913,6 @@
 
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "test main\n");
   test_ctx = ctx;
-  if (peers_total < 2 * peers_pinging)
-  {
-    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                "not enough peers, total should be > 2 * peers_pinging\n");
-    GNUNET_MESH_TEST_cleanup (ctx);
-    return;
-  }
   GNUNET_assert (peers_total == num_peers);
   peers_running = num_peers;
   testbed_handles = testbed_peers;
@@ -969,6 +962,13 @@
 
   peers_pinging = atoll (argv[2]);
 
+  if (peers_total < 2 * peers_pinging)
+  {
+    GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+                "not enough peers, total should be > 2 * peers_pinging\n");
+    return 1;
+  }
+
   ids = GNUNET_CONTAINER_multipeermap_create (2 * peers_total, GNUNET_YES);
   GNUNET_assert (NULL != ids);
   p_ids = 0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]