aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2018-03-21 07:51:42 +0100
committerJulius Bünger <buenger@mytum.de>2018-03-21 10:12:25 +0100
commit28e2cbb911ee174d17a5eb0de41465d668b133d0 (patch)
tree1046bffb5e8844a3f0ce59a979235124cd9eb6f6
parentc420d3cda71d7a75c0f8d466dfc007993fa6e110 (diff)
downloadgnunet-28e2cbb911ee174d17a5eb0de41465d668b133d0.tar.gz
gnunet-28e2cbb911ee174d17a5eb0de41465d668b133d0.zip
rps: logging
-rw-r--r--src/rps/gnunet-service-rps.c5
-rw-r--r--src/rps/rps_api.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/rps/gnunet-service-rps.c b/src/rps/gnunet-service-rps.c
index fabef9388..30d677849 100644
--- a/src/rps/gnunet-service-rps.c
+++ b/src/rps/gnunet-service-rps.c
@@ -3848,6 +3848,11 @@ do_round (void *cls)
3848 CustomPeerMap_size (pull_map)); 3848 CustomPeerMap_size (pull_map));
3849 final_size = second_border + 3849 final_size = second_border +
3850 ceil ((1 - (alpha + beta)) * view_size_est_need); 3850 ceil ((1 - (alpha + beta)) * view_size_est_need);
3851 LOG (GNUNET_ERROR_TYPE_DEBUG,
3852 "first border: %" PRIu32 ", second border: %" PRIu32 ", final size: %"PRIu32 "\n",
3853 first_border,
3854 second_border,
3855 final_size);
3851 3856
3852 /* Update view with peers received through PUSHes */ 3857 /* Update view with peers received through PUSHes */
3853 permut = GNUNET_CRYPTO_random_permute (GNUNET_CRYPTO_QUALITY_STRONG, 3858 permut = GNUNET_CRYPTO_random_permute (GNUNET_CRYPTO_QUALITY_STRONG,
diff --git a/src/rps/rps_api.c b/src/rps/rps_api.c
index 62ba9e226..0da3bd4a4 100644
--- a/src/rps/rps_api.c
+++ b/src/rps/rps_api.c
@@ -266,6 +266,9 @@ GNUNET_RPS_view_request (struct GNUNET_RPS_Handle *rps_handle,
266 struct GNUNET_MQ_Envelope *ev; 266 struct GNUNET_MQ_Envelope *ev;
267 struct GNUNET_RPS_CS_DEBUG_ViewRequest *msg; 267 struct GNUNET_RPS_CS_DEBUG_ViewRequest *msg;
268 268
269 LOG (GNUNET_ERROR_TYPE_DEBUG,
270 "Client requests %" PRIu32 " view updates\n",
271 num_updates);
269 rps_handle->view_update_cb = view_update_cb; 272 rps_handle->view_update_cb = view_update_cb;
270 rps_handle->view_update_cls = cls; 273 rps_handle->view_update_cls = cls;
271 274