Do not weight the average
authorBart Polot <bart@net.in.tum.de>
Wed, 27 Jul 2011 12:50:13 +0000 (12:50 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 27 Jul 2011 12:50:13 +0000 (12:50 +0000)
src/nse/gnunet-service-nse.c

index 04ddf504116c9798402b6f32ffb8e8293fcf8dab..c7bd3881ec521773cd29f5efcab506df703070f0 100644 (file)
@@ -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;