gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r24256 - gnunet/src/mesh
Date: Wed, 10 Oct 2012 19:46:56 +0200

Author: bartpolot
Date: 2012-10-10 19:46:56 +0200 (Wed, 10 Oct 2012)
New Revision: 24256

Modified:
   gnunet/src/mesh/test_mesh_small.c
Log:
- initialize timer in all perf cases

Modified: gnunet/src/mesh/test_mesh_small.c
===================================================================
--- gnunet/src/mesh/test_mesh_small.c   2012-10-10 17:23:49 UTC (rev 24255)
+++ gnunet/src/mesh/test_mesh_small.c   2012-10-10 17:46:56 UTC (rev 24256)
@@ -540,13 +540,16 @@
     expected_target_client = 2L;
   }
 
-  if (SPEED == test && GNUNET_NO == initialized) // Initialization
+  if (GNUNET_NO == initialized)
   {
-    GNUNET_assert (2L == client);
     initialized = GNUNET_YES;
     start_time = GNUNET_TIME_absolute_get ();
-    GNUNET_SCHEDULER_add_now (&data_task, NULL);
-    return GNUNET_OK;
+    if (SPEED == test)
+    {
+      GNUNET_assert (2L == client);
+      GNUNET_SCHEDULER_add_now (&data_task, NULL);
+      return GNUNET_OK;
+    }
   }
 
   if (client == expected_target_client) // Normally 2 or 3




reply via email to

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