projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
676339f
)
RPS service: Record the number of observed peers
author
Julius Bünger
<buenger@mytum.de>
Mon, 8 Apr 2019 14:32:03 +0000
(16:32 +0200)
committer
Julius Bünger
<buenger@mytum.de>
Mon, 8 Apr 2019 14:32:03 +0000
(16:32 +0200)
src/rps/gnunet-service-rps.c
patch
|
blob
|
history
diff --git
a/src/rps/gnunet-service-rps.c
b/src/rps/gnunet-service-rps.c
index 1fdcfe4ca085cd0fd93de14b5924190d0786a213..e929c89de6ab25b6d0bc264568af5fdd0ffd5204 100644
(file)
--- 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