diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-27 19:11:47 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-27 19:11:47 +0000 |
commit | 1b1df3463080c4f269394dac31854a024e8c2ec4 (patch) | |
tree | 38dc6bd90c5ba17c3b84d23fc9b3cc510876f5e2 /src/dht/gnunet-service-dht_hello.c | |
parent | 31ee5f418d7ae0d1ede1f24397769868e4341e28 (diff) | |
download | gnunet-1b1df3463080c4f269394dac31854a024e8c2ec4.tar.gz gnunet-1b1df3463080c4f269394dac31854a024e8c2ec4.zip |
adding some stats
Diffstat (limited to 'src/dht/gnunet-service-dht_hello.c')
-rw-r--r-- | src/dht/gnunet-service-dht_hello.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht_hello.c b/src/dht/gnunet-service-dht_hello.c index 2ee60c91f..db10bb68c 100644 --- a/src/dht/gnunet-service-dht_hello.c +++ b/src/dht/gnunet-service-dht_hello.c | |||
@@ -80,6 +80,9 @@ process_hello (void *cls, | |||
80 | ex = GNUNET_HELLO_get_last_expiration (hello); | 80 | ex = GNUNET_HELLO_get_last_expiration (hello); |
81 | if (GNUNET_TIME_absolute_get_remaining (ex).rel_value == 0) | 81 | if (GNUNET_TIME_absolute_get_remaining (ex).rel_value == 0) |
82 | return; | 82 | return; |
83 | GNUNET_STATISTICS_update (GDS_stats, | ||
84 | gettext_noop ("# HELLOs obtained from peerinfo"), 1, | ||
85 | GNUNET_NO); | ||
83 | hm = GNUNET_CONTAINER_multihashmap_get (peer_to_hello, | 86 | hm = GNUNET_CONTAINER_multihashmap_get (peer_to_hello, |
84 | &peer->hashPubKey); | 87 | &peer->hashPubKey); |
85 | GNUNET_free_non_null (hm); | 88 | GNUNET_free_non_null (hm); |