diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-12-19 09:05:11 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-12-19 09:05:11 +0000 |
commit | 401cd28052d544bf3260b02f03391397b23ef770 (patch) | |
tree | f6d8ca120c62b857223953c0899965a95089fd5d /src/nse/gnunet-service-nse.c | |
parent | 06ff4d4f274ae5269c9b403e1bbd0b93a96ff6d8 (diff) | |
download | gnunet-401cd28052d544bf3260b02f03391397b23ef770.tar.gz gnunet-401cd28052d544bf3260b02f03391397b23ef770.zip |
-do not use NBO double for stats setting
Diffstat (limited to 'src/nse/gnunet-service-nse.c')
-rw-r--r-- | src/nse/gnunet-service-nse.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c index b964b13c1..317750b70 100644 --- a/src/nse/gnunet-service-nse.c +++ b/src/nse/gnunet-service-nse.c | |||
@@ -409,7 +409,8 @@ setup_estimate_message (struct GNUNET_NSE_ClientMessage *em) | |||
409 | em->std_deviation = GNUNET_hton_double (std_dev); | 409 | em->std_deviation = GNUNET_hton_double (std_dev); |
410 | GNUNET_STATISTICS_set (stats, | 410 | GNUNET_STATISTICS_set (stats, |
411 | "# nodes in the network (estimate)", | 411 | "# nodes in the network (estimate)", |
412 | (uint64_t) pow (2, em->size_estimate), | 412 | (uint64_t) pow (2, GNUNET_MAX (se, |
413 | nsize)), | ||
413 | GNUNET_NO); | 414 | GNUNET_NO); |
414 | } | 415 | } |
415 | 416 | ||