aboutsummaryrefslogtreecommitdiff
path: root/src/nse
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-26 12:06:59 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-26 12:06:59 +0000
commit684a4be5c0f05d51d88c63ec07ac7727b39525cd (patch)
treee734c59ec8deae4268cb4cc5ddc1dc933f16edd9 /src/nse
parent037e7b97ce7cd3fcb290f8c3ded50616b41180a0 (diff)
downloadgnunet-684a4be5c0f05d51d88c63ec07ac7727b39525cd.tar.gz
gnunet-684a4be5c0f05d51d88c63ec07ac7727b39525cd.zip
-disable histogram, check return values
Diffstat (limited to 'src/nse')
-rw-r--r--src/nse/gnunet-service-nse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nse/gnunet-service-nse.c b/src/nse/gnunet-service-nse.c
index a396cf9cb..8aff436cb 100644
--- a/src/nse/gnunet-service-nse.c
+++ b/src/nse/gnunet-service-nse.c
@@ -59,7 +59,7 @@
59 * production). The associated code should also probably be removed 59 * production). The associated code should also probably be removed
60 * once we're done with experiments. 60 * once we're done with experiments.
61 */ 61 */
62#define ENABLE_HISTOGRAM GNUNET_YES 62#define ENABLE_HISTOGRAM GNUNET_NO
63 63
64/** 64/**
65 * Over how many values do we calculate the weighted average? 65 * Over how many values do we calculate the weighted average?
@@ -1022,7 +1022,7 @@ handle_p2p_size_estimate (void *cls, const struct GNUNET_PeerIdentity *peer,
1022 1022
1023#if ENABLE_HISTOGRAM 1023#if ENABLE_HISTOGRAM
1024 if (NULL != wh) 1024 if (NULL != wh)
1025 GNUNET_BIO_write_int64 (wh, GNUNET_TIME_absolute_get ().abs_value); 1025 GNUNET_break (GNUNET_OK == GNUNET_BIO_write_int64 (wh, GNUNET_TIME_absolute_get ().abs_value));
1026#endif 1026#endif
1027 incoming_flood = (const struct GNUNET_NSE_FloodMessage *) message; 1027 incoming_flood = (const struct GNUNET_NSE_FloodMessage *) message;
1028 GNUNET_STATISTICS_update (stats, "# flood messages received", 1, GNUNET_NO); 1028 GNUNET_STATISTICS_update (stats, "# flood messages received", 1, GNUNET_NO);
@@ -1311,7 +1311,7 @@ shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1311#if ENABLE_HISTOGRAM 1311#if ENABLE_HISTOGRAM
1312 if (wh != NULL) 1312 if (wh != NULL)
1313 { 1313 {
1314 GNUNET_BIO_write_close (wh); 1314 GNUNET_break (GNUNET_OK == GNUNET_BIO_write_close (wh));
1315 wh = NULL; 1315 wh = NULL;
1316 } 1316 }
1317#endif 1317#endif