diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-07-26 08:21:25 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-07-26 08:21:25 +0000 |
commit | 76de3338bcef82fffc18c2282f9a0cded17b9bd8 (patch) | |
tree | f8e05943426ba1b0143c642c0b72c4691de6aac9 /src | |
parent | 040e5a728cfd38f37b58140afa7baa0a31bf1270 (diff) | |
download | gnunet-76de3338bcef82fffc18c2282f9a0cded17b9bd8.tar.gz gnunet-76de3338bcef82fffc18c2282f9a0cded17b9bd8.zip |
fix
Diffstat (limited to 'src')
-rw-r--r-- | src/nse/gnunet-service-nse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index 45f8edb9d..4ee620a04 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c | |||
@@ -326,11 +326,11 @@ setup_estimate_message (struct GNUNET_NSE_ClientMessage *em) | |||
326 | em->header.type | 326 | em->header.type |
327 | = htons (GNUNET_MESSAGE_TYPE_NSE_ESTIMATE); | 327 | = htons (GNUNET_MESSAGE_TYPE_NSE_ESTIMATE); |
328 | em->reserved = htonl (0); | 328 | em->reserved = htonl (0); |
329 | em->size_estimate = mean - 0.5; | 329 | em->size_estimate = mean - 1.0/3.0; |
330 | em->std_deviation = std_dev; | 330 | em->std_deviation = std_dev; |
331 | GNUNET_STATISTICS_set (stats, | 331 | GNUNET_STATISTICS_set (stats, |
332 | "# nodes in the network (estimate)", | 332 | "# nodes in the network (estimate)", |
333 | (uint64_t) pow (2, mean - 0.5), GNUNET_NO); | 333 | (uint64_t) pow (2, mean - 1.0/3.0), GNUNET_NO); |
334 | } | 334 | } |
335 | 335 | ||
336 | 336 | ||