gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r35794 - gnunet/src/ats
Date: Fri, 22 May 2015 16:11:14 +0200

Author: grothoff
Date: 2015-05-22 16:11:14 +0200 (Fri, 22 May 2015)
New Revision: 35794

Modified:
   gnunet/src/ats/test_ats_lib.c
Log:
-fix cmp

Modified: gnunet/src/ats/test_ats_lib.c
===================================================================
--- gnunet/src/ats/test_ats_lib.c       2015-05-22 13:49:18 UTC (rev 35793)
+++ gnunet/src/ats/test_ats_lib.c       2015-05-22 14:11:14 UTC (rev 35794)
@@ -755,9 +755,11 @@
         else
           cmp = &update->details.update_address.properties;
         if ( (NULL != aid) &&
-             (0 == memcmp (cmp,
-                           &aid->properties,
-                           sizeof (struct GNUNET_ATS_Properties))) )
+             (cmp->delay.rel_value_us == aid->properties.delay.rel_value_us) &&
+             (cmp->delay.utilization_out == aid->properties.utilization_out) &&
+             (cmp->delay.utilization_in == aid->properties.utilization_in) &&
+             (cmp->delay.distance == aid->properties.distance) &&
+             (cmp->delay.scope == aid->properties.scope) )
         {
           off++;
           break;




reply via email to

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