[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14067 - gnunet/src/core
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14067 - gnunet/src/core |
Date: |
Thu, 23 Dec 2010 23:21:40 +0100 |
Author: grothoff
Date: 2010-12-23 23:21:40 +0100 (Thu, 23 Dec 2010)
New Revision: 14067
Modified:
gnunet/src/core/gnunet-service-core.c
Log:
stats
Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c 2010-12-23 22:07:17 UTC (rev
14066)
+++ gnunet/src/core/gnunet-service-core.c 2010-12-23 22:21:40 UTC (rev
14067)
@@ -1886,7 +1886,9 @@
* @return number of bytes transmitted
*/
static size_t
-notify_encrypted_transmit_ready (void *cls, size_t size, void *buf)
+notify_encrypted_transmit_ready (void *cls,
+ size_t size,
+ void *buf)
{
struct Neighbour *n = cls;
struct MessageEntry *m;
@@ -1936,6 +1938,10 @@
}
GNUNET_free (m);
consider_free_neighbour (n);
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# encrypted bytes given to
transport"),
+ ret,
+ GNUNET_NO);
return ret;
}
@@ -2038,7 +2044,10 @@
GNUNET_break (0);
return GNUNET_SYSERR;
}
- GNUNET_STATISTICS_update (stats, gettext_noop ("# bytes decrypted"), size,
GNUNET_NO);
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# bytes decrypted"),
+ size,
+ GNUNET_NO);
#if DEBUG_CORE
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Decrypted %u bytes from `%4s' using key %u, IV %u\n",
@@ -2876,7 +2885,9 @@
* @return number of bytes transmitted
*/
static size_t
-notify_transport_connect_done (void *cls, size_t size, void *buf)
+notify_transport_connect_done (void *cls,
+ size_t size,
+ void *buf)
{
struct Neighbour *n = cls;
@@ -2886,8 +2897,13 @@
/* transport should only call us to transmit a message after
* telling us about a successful connection to the respective peer */
#if DEBUG_CORE
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Timeout on notify connect!\n");
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Timeout on notify connect!\n");
#endif
+ GNUNET_STATISTICS_update (stats,
+ gettext_noop ("# connection requests timed out
in transport"),
+ 1,
+ GNUNET_NO);
return 0;
}
if (buf == NULL)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14067 - gnunet/src/core,
gnunet <=