RPS service: Record the number of observed peers
authorJulius Bünger <buenger@mytum.de>
Mon, 8 Apr 2019 14:32:03 +0000 (16:32 +0200)
committerJulius Bünger <buenger@mytum.de>
Mon, 8 Apr 2019 14:32:03 +0000 (16:32 +0200)
src/rps/gnunet-service-rps.c

index 1fdcfe4ca085cd0fd93de14b5924190d0786a213..e929c89de6ab25b6d0bc264568af5fdd0ffd5204 100644 (file)
@@ -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