gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r17114 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r17114 - gnunet/src/core
Date: Thu, 29 Sep 2011 21:33:12 +0200

Author: grothoff
Date: 2011-09-29 21:33:12 +0200 (Thu, 29 Sep 2011)
New Revision: 17114

Modified:
   gnunet/src/core/gnunet-service-core.c
Log:
report disconnect reasons in stats

Modified: gnunet/src/core/gnunet-service-core.c
===================================================================
--- gnunet/src/core/gnunet-service-core.c       2011-09-29 19:33:03 UTC (rev 
17113)
+++ gnunet/src/core/gnunet-service-core.c       2011-09-29 19:33:12 UTC (rev 
17114)
@@ -4338,6 +4338,9 @@
                 "Forcing disconnect of `%4s' due to inactivity\n",
                 GNUNET_i2s (&n->peer));
 #endif
+    GNUNET_STATISTICS_update (stats,
+                             gettext_noop ("# peers disconnected due to 
inactivity"), 1,
+                             GNUNET_NO);
     q_in = GNUNET_BANDWIDTH_value_init (0);     /* force disconnect */
   }
 #if DEBUG_CORE_QUOTA
@@ -4447,6 +4450,9 @@
   GNUNET_break (n->is_connected == GNUNET_YES);
   if (n->status == PEER_STATE_KEY_CONFIRMED)
   {
+    GNUNET_STATISTICS_update (stats,
+                             gettext_noop ("# peers disconnected due to 
transport disconnect"), 1,
+                             GNUNET_NO);
     cnm.header.size = htons (sizeof (struct DisconnectNotifyMessage));
     cnm.header.type = htons (GNUNET_MESSAGE_TYPE_CORE_NOTIFY_DISCONNECT);
     cnm.reserved = htonl (0);




reply via email to

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