From 11029ef9d4b6a8e201c1f036c6ef1ceb8dc3cd09 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Mon, 8 Apr 2019 16:32:03 +0200 Subject: [PATCH] RPS service: Record the number of observed peers --- src/rps/gnunet-service-rps.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 1fdcfe4ca..e929c89de 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -2602,6 +2602,13 @@ insert_in_sampler (void *cls, * messages to it */ //indicate_sending_intention (peer); } + if (sub == msub) + { + GNUNET_STATISTICS_update (stats, + "# observed peers in gossip", + 1, + GNUNET_NO); + } #ifdef TO_FILE sub->num_observed_peers++; GNUNET_CONTAINER_multipeermap_put -- 2.25.1