RPS: Use correct number of logging blocking statistics
authorJulius Bünger <buenger@mytum.de>
Mon, 25 Feb 2019 15:26:24 +0000 (16:26 +0100)
committerJulius Bünger <buenger@mytum.de>
Mon, 25 Feb 2019 15:26:24 +0000 (16:26 +0100)
src/rps/gnunet-service-rps.c

index 05d5c91c31ee3cae05e7a10a9fa4fb4a25a4b3ee..765c6e3bec9a0b79f8ec25564d95ee78aee9b067 100644 (file)
@@ -4338,10 +4338,10 @@ do_round (void *cls)
     if (sub == msub)
     {
       GNUNET_STATISTICS_update(stats, "# rounds blocked", 1, GNUNET_NO);
-      if (CustomPeerMap_size (sub->push_map) > alpha * View_size (sub->view) &&
+      if (CustomPeerMap_size (sub->push_map) > alpha * sub->view_size_est_need &&
           !(0 >= CustomPeerMap_size (sub->pull_map)))
         GNUNET_STATISTICS_update(stats, "# rounds blocked - too many pushes", 1, GNUNET_NO);
-      if (CustomPeerMap_size (sub->push_map) > alpha * View_size (sub->view) &&
+      if (CustomPeerMap_size (sub->push_map) > alpha * sub->view_size_est_need &&
           (0 >= CustomPeerMap_size (sub->pull_map)))
         GNUNET_STATISTICS_update(stats, "# rounds blocked - too many pushes, no pull replies", 1, GNUNET_NO);
       if (0 >= CustomPeerMap_size (sub->push_map) &&
@@ -4351,7 +4351,7 @@ do_round (void *cls)
           (0 >= CustomPeerMap_size (sub->pull_map)))
         GNUNET_STATISTICS_update(stats, "# rounds blocked - no pushes, no pull replies", 1, GNUNET_NO);
       if (0 >= CustomPeerMap_size (sub->pull_map) &&
-          CustomPeerMap_size (sub->push_map) > alpha * View_size (sub->view) &&
+          CustomPeerMap_size (sub->push_map) > alpha * sub->view_size_est_need &&
           0 >= CustomPeerMap_size (sub->push_map))
         GNUNET_STATISTICS_update(stats, "# rounds blocked - no pull replies", 1, GNUNET_NO);
     }