diff options
Diffstat (limited to 'src/rps/test_rps.c')
-rw-r--r-- | src/rps/test_rps.c | 13 |
1 files changed, 13 insertions, 0 deletions
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) | |||
2027 | view_size, | 2027 | view_size, |
2028 | i, | 2028 | i, |
2029 | prob_pull); | 2029 | prob_pull); |
2030 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2031 | "\t\tnumber of possible pull combinations: %" PRIu32 "\n", | ||
2032 | binom (view_size, 0.45 * view_size)); | ||
2033 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2034 | "\t\tnumber of possible pull combinations without %" PRIu32 | ||
2035 | ": %" PRIu32 "\n", | ||
2036 | i, | ||
2037 | binom (view_size - cont_views, 0.45 * view_size)); | ||
2038 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
2039 | "\t\tnumber of possible pull combinations with %" PRIu32 | ||
2040 | ": %" PRIu32 "\n", | ||
2041 | i, | ||
2042 | number_of_being_in_pull_events); | ||
2030 | 2043 | ||
2031 | if (0 != probs[i]) count_non_zero_prob++; | 2044 | if (0 != probs[i]) count_non_zero_prob++; |
2032 | } | 2045 | } |