gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r29588 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r29588 - gnunet/src/ats
Date: Thu, 26 Sep 2013 11:29:10 +0200

Author: wachs
Date: 2013-09-26 11:29:10 +0200 (Thu, 26 Sep 2013)
New Revision: 29588

Modified:
   gnunet/src/ats/test_ats_api_performance_monitor_initial_callback.c
Log:
modified termination condition


Modified: gnunet/src/ats/test_ats_api_performance_monitor_initial_callback.c
===================================================================
--- gnunet/src/ats/test_ats_api_performance_monitor_initial_callback.c  
2013-09-26 09:27:25 UTC (rev 29587)
+++ gnunet/src/ats/test_ats_api_performance_monitor_initial_callback.c  
2013-09-26 09:29:10 UTC (rev 29588)
@@ -106,16 +106,16 @@
   static int peer0 = GNUNET_NO;
   static int peer1 = GNUNET_NO;
   static int done = GNUNET_NO;
-  GNUNET_break (0);
-  if ((GNUNET_NO == peer0) && (0 == memcmp (address, &p[0].id, sizeof 
(p[0].id))))
+
+  if (0 == memcmp (address, &p[0].id, sizeof (p[0].id)))
   {
-    peer0 = GNUNET_YES;
+    peer0 ++;
   }
   if ((GNUNET_NO == peer0) && (0 == memcmp (address, &p[1].id, sizeof 
(p[1].id))))
   {
-    peer1 = GNUNET_YES;
+    peer1 ++;
   }
-  if ((peer0 == GNUNET_YES) && (peer1 = GNUNET_YES) && (GNUNET_NO == done))
+  if ((2 == peer0) && (2 == peer1) && (GNUNET_NO == done))
   {
     GNUNET_log (GNUNET_ERROR_TYPE_INFO,
         "Done\n");




reply via email to

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