aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-01 07:54:55 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-01 07:54:55 +0000
commitc206e5229ac556989351d207b8f782610bbee730 (patch)
treeb9cbb5e51f9968e77f0331c95e8087d96b3def83 /src/nse
parent983d1830c6f08ba9e04184370e09ebfe669560b9 (diff)
downloadgnunet-c206e5229ac556989351d207b8f782610bbee730.tar.gz
gnunet-c206e5229ac556989351d207b8f782610bbee730.zip
fix
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/test_nse_api.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nse/test_nse_api.c b/src/nse/test_nse_api.c
index 03ea41d18..aaaad1fc6 100644
--- a/src/nse/test_nse_api.c
+++ b/src/nse/test_nse_api.c
@@ -83,18 +83,22 @@ end_test (void *cls,
83 * Callback to call when network size estimate is updated. 83 * Callback to call when network size estimate is updated.
84 * 84 *
85 * @param cls unused 85 * @param cls unused
86 * @param timestamp time when the estimate was received from the server (or created by the server)
86 * @param estimate the value of the current network size estimate 87 * @param estimate the value of the current network size estimate
87 * @param std_dev standard deviation (rounded down to nearest integer) 88 * @param std_dev standard deviation (rounded down to nearest integer)
88 * of the size estimation values seen 89 * of the size estimation values seen
89 * 90 *
90 */ 91 */
91static void 92static void
92check_nse_message (void *cls, double estimate, double std_dev) 93check_nse_message (void *cls,
94 struct GNUNET_TIME_Absolute timestamp,
95 double estimate, double std_dev)
93{ 96{
94 int *ok = cls; 97 int *ok = cls;
95 98
96 fprintf (stderr, 99 fprintf (stderr,
97 "Received NSE message, estimate %f, standard deviation %f.\n"); 100 "Received NSE message, estimate %f, standard deviation %f.\n",
101 estimate, std_dev);
98 /* Fantastic check below. Expect NaN, the only thing not equal to itself. */ 102 /* Fantastic check below. Expect NaN, the only thing not equal to itself. */
99 (*ok) = 0; 103 (*ok) = 0;
100 if (die_task != GNUNET_SCHEDULER_NO_TASK) 104 if (die_task != GNUNET_SCHEDULER_NO_TASK)