diff options
author | Julius Bünger <buenger@mytum.de> | 2018-08-30 16:09:12 +0200 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2018-08-30 16:09:12 +0200 |
commit | 688578a44d3e54ad14ef040d49d2be6d3a8d7a45 (patch) | |
tree | 37e60754cd02983844bbba134e900df45570095c | |
parent | fbdbf103d36c50f6323a96d138f70a9dabcfc16c (diff) | |
download | gnunet-688578a44d3e54ad14ef040d49d2be6d3a8d7a45.tar.gz gnunet-688578a44d3e54ad14ef040d49d2be6d3a8d7a45.zip |
Keep track of pending liveliness checks with statistics
-rw-r--r-- | src/rps/gnunet-service-rps.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 98e57a38e..a830bfa29 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c | |||
@@ -835,6 +835,10 @@ check_peer_live (struct PeerContext *peer_ctx) | |||
835 | mq_liveliness_check_successful, | 835 | mq_liveliness_check_successful, |
836 | peer_ctx); | 836 | peer_ctx); |
837 | GNUNET_MQ_send (mq, ev); | 837 | GNUNET_MQ_send (mq, ev); |
838 | GNUNET_STATISTICS_update (stats, | ||
839 | "# pending liveliness checks", | ||
840 | 1, | ||
841 | GNUNET_NO); | ||
838 | } | 842 | } |
839 | 843 | ||
840 | 844 | ||
@@ -2973,6 +2977,10 @@ handle_peer_check (void *cls, | |||
2973 | 2977 | ||
2974 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2978 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2975 | "Received CHECK_LIVE (%s)\n", GNUNET_i2s (peer)); | 2979 | "Received CHECK_LIVE (%s)\n", GNUNET_i2s (peer)); |
2980 | GNUNET_STATISTICS_update (stats, | ||
2981 | "# pending liveliness checks", | ||
2982 | -1, | ||
2983 | GNUNET_NO); | ||
2976 | 2984 | ||
2977 | GNUNET_CADET_receive_done (channel_ctx->channel); | 2985 | GNUNET_CADET_receive_done (channel_ctx->channel); |
2978 | } | 2986 | } |