summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-04-08 15:03:52 +0200
committerJulius Bünger <buenger@mytum.de>2019-04-08 15:03:52 +0200
commitba49954276e1f04c1d3b6e1861be617882783e54 (patch)
treeb247fb1c7b1252f5cd6102b356efce2e080741da /src
parentd6da7d33dc20e35733527315d4ea76649370c00e (diff)
RPS service: Record number of unique peers in gossip
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index f6fe17589..1fdcfe4ca 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -2611,6 +2611,10 @@ insert_in_sampler (void *cls,
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY);
uint32_t num_observed_unique_peers =
GNUNET_CONTAINER_multipeermap_size (sub->observed_unique_peers);
+ GNUNET_STATISTICS_set (stats,
+ "# unique peers in gossip",
+ num_observed_unique_peers,
+ GNUNET_NO);
#ifdef TO_FILE_FULL
to_file (sub->file_name_observed_log,
"%" PRIu32 " %" PRIu32 " %f\n",