gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: Keep track of pending livel


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: Keep track of pending liveliness checks with statistics
Date: Fri, 31 Aug 2018 01:15:43 +0200

This is an automated email from the git hooks/post-receive script.

julius-buenger pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new 688578a44 Keep track of pending liveliness checks with statistics
688578a44 is described below

commit 688578a44d3e54ad14ef040d49d2be6d3a8d7a45
Author: Julius Bünger <address@hidden>
AuthorDate: Thu Aug 30 16:09:12 2018 +0200

    Keep track of pending liveliness checks with statistics
---
 src/rps/gnunet-service-rps.c | 8 ++++++++
 1 file changed, 8 insertions(+)

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)
                          mq_liveliness_check_successful,
                          peer_ctx);
   GNUNET_MQ_send (mq, ev);
+  GNUNET_STATISTICS_update (stats,
+                            "# pending liveliness checks",
+                            1,
+                            GNUNET_NO);
 }
 
 
@@ -2973,6 +2977,10 @@ handle_peer_check (void *cls,
 
   LOG (GNUNET_ERROR_TYPE_DEBUG,
       "Received CHECK_LIVE (%s)\n", GNUNET_i2s (peer));
+  GNUNET_STATISTICS_update (stats,
+                            "# pending liveliness checks",
+                            -1,
+                            GNUNET_NO);
 
   GNUNET_CADET_receive_done (channel_ctx->channel);
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]