diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-25 10:29:29 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-25 10:29:29 +0000 |
commit | 3fdda0a7448b87ebb5b4704682bd54c2b04c189d (patch) | |
tree | 5946ed0746c5e468b817289ce7a6a3696aa1416e /src/nse | |
parent | 457d13eed633d727fc2c93bd8d977f970c08b977 (diff) | |
download | gnunet-3fdda0a7448b87ebb5b4704682bd54c2b04c189d.tar.gz gnunet-3fdda0a7448b87ebb5b4704682bd54c2b04c189d.zip |
-fix
Diffstat (limited to 'src/nse')
-rw-r--r-- | src/nse/gnunet-service-nse.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index 2b391b1c4..3af9bb7c7 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c | |||
@@ -387,9 +387,7 @@ setup_estimate_message (struct GNUNET_NSE_ClientMessage *em) | |||
387 | em->timestamp = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()); | 387 | em->timestamp = GNUNET_TIME_absolute_hton (GNUNET_TIME_absolute_get ()); |
388 | double se = mean - 0.332747; | 388 | double se = mean - 0.332747; |
389 | nsize = log2 (GNUNET_CONTAINER_multihashmap_size (peers) + 1); | 389 | nsize = log2 (GNUNET_CONTAINER_multihashmap_size (peers) + 1); |
390 | if (em->size_estimate < nsize) | 390 | em->size_estimate = GNUNET_hton_double (GNUNET_MAX (se, nsize)); |
391 | se = nsize; | ||
392 | em->size_estimate = GNUNET_hton_double (se); | ||
393 | em->std_deviation = GNUNET_hton_double (std_dev); | 391 | em->std_deviation = GNUNET_hton_double (std_dev); |
394 | GNUNET_STATISTICS_set (stats, "# nodes in the network (estimate)", | 392 | GNUNET_STATISTICS_set (stats, "# nodes in the network (estimate)", |
395 | (uint64_t) pow (2, mean - 1.0 / 3.0), GNUNET_NO); | 393 | (uint64_t) pow (2, mean - 1.0 / 3.0), GNUNET_NO); |