aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-327691efff3ce22f8c385973cf204a8913ca587e.tar.gz
gnunet-327691efff3ce22f8c385973cf204a8913ca587e.zip
- 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)
141 GNUNET_assert (1 >= portion 141 GNUNET_assert (1 >= portion
142 && 0 < portion); 142 && 0 < portion);
143 143
144 amount = portion * NUM_PEERS; 144 amount = round (portion * NUM_PEERS);
145 145
146 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Seeding peers:\n"); 146 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Seeding peers:\n");
147 for (i = 0 ; i < amount ; i++) 147 for (i = 0 ; i < amount ; i++)