gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r13822 - gnunet/src/dht


From: gnunet
Subject: [GNUnet-SVN] r13822 - gnunet/src/dht
Date: Mon, 29 Nov 2010 15:44:05 +0100

Author: nevans
Date: 2010-11-29 15:44:05 +0100 (Mon, 29 Nov 2010)
New Revision: 13822

Modified:
   gnunet/src/dht/gnunet-service-dht.c
Log:
greater or equal cutoff

Modified: gnunet/src/dht/gnunet-service-dht.c
===================================================================
--- gnunet/src/dht/gnunet-service-dht.c 2010-11-29 13:06:01 UTC (rev 13821)
+++ gnunet/src/dht/gnunet-service-dht.c 2010-11-29 14:44:05 UTC (rev 13822)
@@ -2904,7 +2904,7 @@
       other_bits = GNUNET_CRYPTO_hash_matching_bits(&pos->id.hashPubKey, 
target);
       if (other_bits > bits)
         return GNUNET_NO;
-      else if (other_bits == bits) /* We match the same number of bits, do 
distance comparison */
+      else if (other_bits == bits) /* We match the same number of bits */
         {
           if (strict_kademlia != GNUNET_YES) /* Return that we at as close as 
any other peer */
             return GNUNET_YES;
@@ -2992,7 +2992,7 @@
          * they are sorted.)
          */
 
-        if (hops > converge_modifier) /* Past cutoff */
+        if (hops >= converge_modifier) /* Past cutoff */
           {
             return ULLONG_MAX;
           }




reply via email to

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