From: Julius Bünger Date: Mon, 25 Feb 2019 15:26:24 +0000 (+0100) Subject: RPS: Use correct number of logging blocking statistics X-Git-Tag: v0.11.0~37^2~8 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3d0971394f3d29518b8e78ea9968bc68535dae08;p=oweals%2Fgnunet.git RPS: Use correct number of logging blocking statistics --- diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c index 05d5c91c3..765c6e3be 100644 --- a/src/rps/gnunet-service-rps.c +++ b/src/rps/gnunet-service-rps.c @@ -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); }