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:
d9b6cb9
)
Do not weight the average
author
Bart Polot
<bart@net.in.tum.de>
Wed, 27 Jul 2011 12:50:13 +0000
(12:50 +0000)
committer
Bart Polot
<bart@net.in.tum.de>
Wed, 27 Jul 2011 12:50:13 +0000
(12:50 +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 04ddf504116c9798402b6f32ffb8e8293fcf8dab..c7bd3881ec521773cd29f5efcab506df703070f0 100644
(file)
--- a/
src/nse/gnunet-service-nse.c
+++ b/
src/nse/gnunet-service-nse.c
@@
-312,7
+312,7
@@
setup_estimate_message (struct GNUNET_NSE_ClientMessage *em)
{
val = htonl (size_estimate_messages[(estimate_index - i + HISTORY_SIZE)
% HISTORY_SIZE].matching_bits);
- weight =
estimate_count + 1 - i;
+ weight =
1; /* was: estimate_count + 1 - i; */
temp = weight + sumweight;
q = val - mean;