projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cae9ea
)
-eliminate special case, no justification for why it is there
author
Christian Grothoff
<christian@grothoff.org>
Thu, 8 Dec 2011 12:51:14 +0000
(12:51 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Thu, 8 Dec 2011 12:51:14 +0000
(12:51 +0000)
src/nse/gnunet-service-nse.c
patch
|
blob
|
history
diff --git
a/src/nse/gnunet-service-nse.c
b/src/nse/gnunet-service-nse.c
index 06b459beb034866bac9163460ce1881c42075670..5bf320ac463009bd3f9ea0e127c8ec34070bf414 100644
(file)
--- a/
src/nse/gnunet-service-nse.c
+++ b/
src/nse/gnunet-service-nse.c
@@
-434,9
+434,7
@@
get_delay_randomization (uint32_t matching_bits)
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,