summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJulius Bünger <buenger@mytum.de>2015-02-17 14:04:56 +0000
committerJulius Bünger <buenger@mytum.de>2015-02-17 14:04:56 +0000
commit327691efff3ce22f8c385973cf204a8913ca587e (patch)
tree7baee6da7f3931605b024c403b76039a74570d0c /src
parentb5d2cf873250999304c74535efde251d54818f05 (diff)
- fixed rounding
Diffstat (limited to 'src')
-rw-r--r--src/rps/test_rps_multipeer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rps/test_rps_multipeer.c b/src/rps/test_rps_multipeer.c
index 9367efff2..df897b13d 100644
--- 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++)