aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2019-02-25 16:26:24 +0100
committerJulius Bünger <buenger@mytum.de>2019-02-25 16:26:24 +0100
commit3d0971394f3d29518b8e78ea9968bc68535dae08 (patch)
treeaa627b61a1520d8a1a3fe0a0c56fee44a2e8d074 /src
parente5897fbfbe7e2afb61b6cfe8ae29a480dd00fdfa (diff)
downloadgnunet-3d0971394f3d29518b8e78ea9968bc68535dae08.tar.gz
gnunet-3d0971394f3d29518b8e78ea9968bc68535dae08.zip
RPS: Use correct number of logging blocking statistics
Diffstat (limited to 'src')
-rw-r--r--src/rps/gnunet-service-rps.c6
1 files changed, 3 insertions, 3 deletions
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)
4338 if (sub == msub) 4338 if (sub == msub)
4339 { 4339 {
4340 GNUNET_STATISTICS_update(stats, "# rounds blocked", 1, GNUNET_NO); 4340 GNUNET_STATISTICS_update(stats, "# rounds blocked", 1, GNUNET_NO);
4341 if (CustomPeerMap_size (sub->push_map) > alpha * View_size (sub->view) && 4341 if (CustomPeerMap_size (sub->push_map) > alpha * sub->view_size_est_need &&
4342 !(0 >= CustomPeerMap_size (sub->pull_map))) 4342 !(0 >= CustomPeerMap_size (sub->pull_map)))
4343 GNUNET_STATISTICS_update(stats, "# rounds blocked - too many pushes", 1, GNUNET_NO); 4343 GNUNET_STATISTICS_update(stats, "# rounds blocked - too many pushes", 1, GNUNET_NO);
4344 if (CustomPeerMap_size (sub->push_map) > alpha * View_size (sub->view) && 4344 if (CustomPeerMap_size (sub->push_map) > alpha * sub->view_size_est_need &&
4345 (0 >= CustomPeerMap_size (sub->pull_map))) 4345 (0 >= CustomPeerMap_size (sub->pull_map)))
4346 GNUNET_STATISTICS_update(stats, "# rounds blocked - too many pushes, no pull replies", 1, GNUNET_NO); 4346 GNUNET_STATISTICS_update(stats, "# rounds blocked - too many pushes, no pull replies", 1, GNUNET_NO);
4347 if (0 >= CustomPeerMap_size (sub->push_map) && 4347 if (0 >= CustomPeerMap_size (sub->push_map) &&
@@ -4351,7 +4351,7 @@ do_round (void *cls)
4351 (0 >= CustomPeerMap_size (sub->pull_map))) 4351 (0 >= CustomPeerMap_size (sub->pull_map)))
4352 GNUNET_STATISTICS_update(stats, "# rounds blocked - no pushes, no pull replies", 1, GNUNET_NO); 4352 GNUNET_STATISTICS_update(stats, "# rounds blocked - no pushes, no pull replies", 1, GNUNET_NO);
4353 if (0 >= CustomPeerMap_size (sub->pull_map) && 4353 if (0 >= CustomPeerMap_size (sub->pull_map) &&
4354 CustomPeerMap_size (sub->push_map) > alpha * View_size (sub->view) && 4354 CustomPeerMap_size (sub->push_map) > alpha * sub->view_size_est_need &&
4355 0 >= CustomPeerMap_size (sub->push_map)) 4355 0 >= CustomPeerMap_size (sub->push_map))
4356 GNUNET_STATISTICS_update(stats, "# rounds blocked - no pull replies", 1, GNUNET_NO); 4356 GNUNET_STATISTICS_update(stats, "# rounds blocked - no pull replies", 1, GNUNET_NO);
4357 } 4357 }