From: Julius Bünger Date: Wed, 11 Apr 2018 08:46:07 +0000 (+0200) Subject: rps profiler: more logging X-Git-Tag: v0.11.0pre66~111^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a67848585975067e40846fef9cccf6e8a7cd5494;p=oweals%2Fgnunet.git rps profiler: more logging --- diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c index 9905e07ab..60a743167 100644 --- a/src/rps/test_rps.c +++ b/src/rps/test_rps.c @@ -2027,6 +2027,19 @@ static void compute_probabilities (uint32_t peer_idx) view_size, i, prob_pull); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "\t\tnumber of possible pull combinations: %" PRIu32 "\n", + binom (view_size, 0.45 * view_size)); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "\t\tnumber of possible pull combinations without %" PRIu32 + ": %" PRIu32 "\n", + i, + binom (view_size - cont_views, 0.45 * view_size)); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "\t\tnumber of possible pull combinations with %" PRIu32 + ": %" PRIu32 "\n", + i, + number_of_being_in_pull_events); if (0 != probs[i]) count_non_zero_prob++; }