projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5d2cf8
)
- fixed rounding
author
Julius Bünger
<buenger@mytum.de>
Tue, 17 Feb 2015 14:04:56 +0000
(14:04 +0000)
committer
Julius Bünger
<buenger@mytum.de>
Tue, 17 Feb 2015 14:04:56 +0000
(14:04 +0000)
src/rps/test_rps_multipeer.c
patch
|
blob
|
history
diff --git
a/src/rps/test_rps_multipeer.c
b/src/rps/test_rps_multipeer.c
index 9367efff2953f1d750a9f8402c09851e0a065cc2..df897b13da863b3dbc12438365d2fa870a530414 100644
(file)
--- a/
src/rps/test_rps_multipeer.c
+++ b/
src/rps/test_rps_multipeer.c
@@
-141,7
+141,7
@@
seed_peers (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
GNUNET_assert (1 >= portion
&& 0 < portion);
- amount =
portion * NUM_PEERS
;
+ amount =
round (portion * NUM_PEERS)
;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Seeding peers:\n");
for (i = 0 ; i < amount ; i++)