summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-04-08 16:32:03 +0200
committerJulius Bünger <buenger@mytum.de>2019-04-08 16:32:03 +0200
commit11029ef9d4b6a8e201c1f036c6ef1ceb8dc3cd09 (patch)
tree13c948b4ffe16ed6a93797ceeeed9341f44e129e /src
parent676339f8b08099062248ed297e0e13fa9a9f6e42 (diff)
RPS service: Record the number of observed peers
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c7
1 files changed, 7 insertions, 0 deletions
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