gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r21170 - gnunet/src/nse


From: gnunet
Subject: [GNUnet-SVN] r21170 - gnunet/src/nse
Date: Thu, 26 Apr 2012 14:06:59 +0200

Author: grothoff
Date: 2012-04-26 14:06:59 +0200 (Thu, 26 Apr 2012)
New Revision: 21170

Modified:
   gnunet/src/nse/gnunet-service-nse.c
Log:
-disable histogram, check return values

Modified: gnunet/src/nse/gnunet-service-nse.c
===================================================================
--- gnunet/src/nse/gnunet-service-nse.c 2012-04-26 12:04:49 UTC (rev 21169)
+++ gnunet/src/nse/gnunet-service-nse.c 2012-04-26 12:06:59 UTC (rev 21170)
@@ -59,7 +59,7 @@
  * production).  The associated code should also probably be removed
  * once we're done with experiments.
  */
-#define ENABLE_HISTOGRAM GNUNET_YES
+#define ENABLE_HISTOGRAM GNUNET_NO
 
 /**
  * Over how many values do we calculate the weighted average?
@@ -1022,7 +1022,7 @@
 
 #if ENABLE_HISTOGRAM
   if (NULL != wh)
-    GNUNET_BIO_write_int64 (wh, GNUNET_TIME_absolute_get ().abs_value);
+    GNUNET_break (GNUNET_OK == GNUNET_BIO_write_int64 (wh, 
GNUNET_TIME_absolute_get ().abs_value));
 #endif
   incoming_flood = (const struct GNUNET_NSE_FloodMessage *) message;
   GNUNET_STATISTICS_update (stats, "# flood messages received", 1, GNUNET_NO);
@@ -1311,7 +1311,7 @@
 #if ENABLE_HISTOGRAM
   if (wh != NULL)
   {
-    GNUNET_BIO_write_close (wh);
+    GNUNET_break (GNUNET_OK == GNUNET_BIO_write_close (wh));
     wh = NULL;
   }
 #endif




reply via email to

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