[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r18508 - gnunet/src/nse
From: |
gnunet |
Subject: |
[GNUnet-SVN] r18508 - gnunet/src/nse |
Date: |
Thu, 8 Dec 2011 13:51:14 +0100 |
Author: grothoff
Date: 2011-12-08 13:51:14 +0100 (Thu, 08 Dec 2011)
New Revision: 18508
Modified:
gnunet/src/nse/gnunet-service-nse.c
Log:
-eliminate special case, no justification for why it is there
Modified: gnunet/src/nse/gnunet-service-nse.c
===================================================================
--- gnunet/src/nse/gnunet-service-nse.c 2011-12-08 12:47:23 UTC (rev 18507)
+++ gnunet/src/nse/gnunet-service-nse.c 2011-12-08 12:51:14 UTC (rev 18508)
@@ -434,9 +434,7 @@
uint32_t i;
double d;
- if (matching_bits == 0)
- return GNUNET_TIME_UNIT_ZERO;
- d = get_matching_bits_delay (matching_bits - 1);
+ d = get_matching_bits_delay (matching_bits);
i = (uint32_t) (d / (double) (hop_count_max + 1));
#if DEBUG_NSE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r18508 - gnunet/src/nse,
gnunet <=