diff options
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); } |