[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] branch master updated: rps profiler: fix probabili
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] branch master updated: rps profiler: fix probability computation |
Date: |
Mon, 09 Apr 2018 21:23:33 +0200 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 7fa39e49b rps profiler: fix probability computation
7fa39e49b is described below
commit 7fa39e49b7a50ddb18e722b4ff2b32060038939d
Author: Julius Bünger <address@hidden>
AuthorDate: Mon Apr 9 21:14:52 2018 +0200
rps profiler: fix probability computation
---
src/rps/test_rps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rps/test_rps.c b/src/rps/test_rps.c
index 086b0782e..03524eaeb 100644
--- a/src/rps/test_rps.c
+++ b/src/rps/test_rps.c
@@ -1998,7 +1998,7 @@ static void compute_probabilities (uint32_t peer_idx)
}
/* 2. Probability of peer i being contained in pulls */
view_size = rps_peers[peer_idx].cur_view_count;
- cont_views = count_containing_views (i, peer_idx);
+ cont_views = count_containing_views (peer_idx, i);
number_of_being_in_pull_events =
(binom (view_size, 0.45 * view_size) -
binom (view_size - cont_views, 0.45 * view_size));
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet] branch master updated: rps profiler: fix probability computation,
gnunet <=