From: Julius Bünger Date: Mon, 8 Apr 2019 14:32:03 +0000 (+0200) Subject: RPS service: Record the number of observed peers X-Git-Tag: v0.11.4~218^2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=11029ef9d4b6a8e201c1f036c6ef1ceb8dc3cd09;p=oweals%2Fgnunet.git RPS service: Record the number of observed peers --- 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