aboutsummaryrefslogtreecommitdiff
path: root/src/rps
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-04-04 08:07:50 +0200
committerJulius Bünger <buenger@mytum.de>2018-04-04 08:46:59 +0200
commit2f2506d4a09eaaaa004014823e4fa1b7bd783588 (patch)
treec14116d3ce50094c961ffc9f7e6091cf5bcf7300 /src/rps
parent592845547042c5c1ce59889bfff3f246be924d21 (diff)
downloadgnunet-2f2506d4a09eaaaa004014823e4fa1b7bd783588.tar.gz
gnunet-2f2506d4a09eaaaa004014823e4fa1b7bd783588.zip
rps service: log view size on history update, too
Diffstat (limited to 'src/rps')
-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 30d677849..5b7f78b3f 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -2270,6 +2270,12 @@ insert_in_view (const struct GNUNET_PeerIdentity *peer)
2270} 2270}
2271 2271
2272/** 2272/**
2273 * @brief sends updates to clients that are interested
2274 */
2275static void
2276clients_notify_view_update (void);
2277
2278/**
2273 * Put random peer from sampler into the view as history update. 2279 * Put random peer from sampler into the view as history update.
2274 */ 2280 */
2275static void 2281static void
@@ -2279,6 +2285,7 @@ hist_update (void *cls,
2279{ 2285{
2280 unsigned int i; 2286 unsigned int i;
2281 2287
2288 clients_notify_view_update();
2282 for (i = 0; i < num_peers; i++) 2289 for (i = 0; i < num_peers; i++)
2283 { 2290 {
2284 (void) insert_in_view (&ids[i]); 2291 (void) insert_in_view (&ids[i]);