gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: NSE: return INF, not NaN (fixes #7021)


From: gnunet
Subject: [gnunet] branch master updated: NSE: return INF, not NaN (fixes #7021)
Date: Wed, 22 Sep 2021 11:36:05 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 7bf37b7ea NSE: return INF, not NaN (fixes #7021)
7bf37b7ea is described below

commit 7bf37b7ea24929c277cd915de3eac24e728a6a1f
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Wed Sep 22 11:35:46 2021 +0200

    NSE: return INF, not NaN (fixes #7021)
---
 src/nse/gnunet-service-nse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index 8e9cd0c9d..45ebae34c 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -390,7 +390,7 @@ setup_estimate_message (struct GNUNET_NSE_ClientMessage *em)
   if (variance >= 0)
     std_dev = sqrt (variance);
   else
-    std_dev = variance; /* must be infinity due to estimate_count == 0 */
+    std_dev = 1.0 / 0.0; /* return infinity due to estimate_count == 0 */
   current_std_dev = std_dev;
   current_size_estimate = mean;
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]