diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-10-22 21:06:03 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-10-22 21:06:03 +0000 |
commit | e3a46eeef8e9b5157331620530a42af0c1d52842 (patch) | |
tree | 0869a967f86b8a94ce261b21216c0d1fc955c551 /src/core/gnunet-service-core_sessions.c | |
parent | 41a1a312fd789d333bdc8fd0b0a7577375a716bc (diff) |
add and fix stats
git-svn-id: https://gnunet.org/svn/gnunet@17672 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/core/gnunet-service-core_sessions.c')
-rw-r--r-- | src/core/gnunet-service-core_sessions.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/core/gnunet-service-core_sessions.c b/src/core/gnunet-service-core_sessions.c index 6076604a11..f476b22462 100644 --- a/src/core/gnunet-service-core_sessions.c +++ b/src/core/gnunet-service-core_sessions.c @@ -231,6 +231,10 @@ transmit_typemap_task (void *cls, session->typemap_task = GNUNET_SCHEDULER_add_delayed (delay, &transmit_typemap_task, session); + GNUNET_STATISTICS_update (GSC_stats, + gettext_noop ("# typemap refreshs sent"), + 1, + GNUNET_NO); hdr = GSC_TYPEMAP_compute_type_map_message (); GSC_KX_encrypt_and_transmit (session->kxinfo, hdr, @@ -265,10 +269,10 @@ GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer, GNUNET_CONTAINER_multihashmap_put (sessions, &peer->hashPubKey, session, GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)); - GNUNET_STATISTICS_update (GSC_stats, - gettext_noop ("# entries in session map"), - GNUNET_CONTAINER_multihashmap_size (sessions), - GNUNET_NO); + GNUNET_STATISTICS_set (GSC_stats, + gettext_noop ("# entries in session map"), + GNUNET_CONTAINER_multihashmap_size (sessions), + GNUNET_NO); } |