From 327691efff3ce22f8c385973cf204a8913ca587e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julius=20B=C3=BCnger?= Date: Tue, 17 Feb 2015 14:04:56 +0000 Subject: [PATCH] - fixed rounding --- src/rps/test_rps_multipeer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) -- 2.25.1