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:
6830525
)
simplify
author
Christian Grothoff
<christian@grothoff.org>
Tue, 13 Sep 2011 09:56:39 +0000
(09:56 +0000)
committer
Christian Grothoff
<christian@grothoff.org>
Tue, 13 Sep 2011 09:56:39 +0000
(09:56 +0000)
src/dht/gnunet-service-dht.c
patch
|
blob
|
history
diff --git
a/src/dht/gnunet-service-dht.c
b/src/dht/gnunet-service-dht.c
index 42e0c20b86eb45de636396573ff946dcfee009ef..055fbe1fd362e0dfe56fdb5a54eda655bb5f2a6b 100644
(file)
--- a/
src/dht/gnunet-service-dht.c
+++ b/
src/dht/gnunet-service-dht.c
@@
-3083,10
+3083,9
@@
get_forward_count (unsigned int hop_count, size_t target_replication)
{
if (hop_count == 0)
return kademlia_replication;
-
else
if (hop_count < max_hops)
+ if (hop_count < max_hops)
return 1;
- else
- return 0;
+ return 0;
}
/* FIXME: the smaller we think the network is the more lenient we should be for