aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-22 21:10:29 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-22 21:10:29 +0000
commit20c50963ee33c2f4bce9ef5fafe7ed3ecb89c70b (patch)
tree8572c23e521ec455e5d1c03bc764e8df444b735b /src/core
parent345c0b5c542f9cc5c6ee5839f9fff808793eb7f1 (diff)
downloadgnunet-20c50963ee33c2f4bce9ef5fafe7ed3ecb89c70b.tar.gz
gnunet-20c50963ee33c2f4bce9ef5fafe7ed3ecb89c70b.zip
more stats
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gnunet-service-core_kx.c4
-rw-r--r--src/core/gnunet-service-core_neighbours.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c
index 767554398..7fe5a705f 100644
--- a/src/core/gnunet-service-core_kx.c
+++ b/src/core/gnunet-service-core_kx.c
@@ -1025,6 +1025,10 @@ send_keep_alive (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1025 left = GNUNET_TIME_absolute_get_remaining (kx->timeout); 1025 left = GNUNET_TIME_absolute_get_remaining (kx->timeout);
1026 if (left.rel_value == 0) 1026 if (left.rel_value == 0)
1027 { 1027 {
1028 GNUNET_STATISTICS_update (GSC_stats,
1029 gettext_noop ("# sessions terminated by timeout"),
1030 1,
1031 GNUNET_NO);
1028 GSC_SESSIONS_end (&kx->peer); 1032 GSC_SESSIONS_end (&kx->peer);
1029 kx->status = KX_STATE_DOWN; 1033 kx->status = KX_STATE_DOWN;
1030 return; 1034 return;
diff --git a/src/core/gnunet-service-core_neighbours.c b/src/core/gnunet-service-core_neighbours.c
index 596836216..9b33a286e 100644
--- a/src/core/gnunet-service-core_neighbours.c
+++ b/src/core/gnunet-service-core_neighbours.c
@@ -158,6 +158,10 @@ free_neighbour (struct Neighbour *n)
158 GNUNET_TRANSPORT_notify_transmit_ready_cancel (n->th); 158 GNUNET_TRANSPORT_notify_transmit_ready_cancel (n->th);
159 n->th = NULL; 159 n->th = NULL;
160 } 160 }
161 GNUNET_STATISTICS_update (GSC_stats,
162 gettext_noop ("# sessions terminated by transport disconnect"),
163 1,
164 GNUNET_NO);
161 GSC_SESSIONS_end (&n->peer); 165 GSC_SESSIONS_end (&n->peer);
162 if (NULL != n->kxinfo) 166 if (NULL != n->kxinfo)
163 { 167 {