From: Julius Bünger Date: Tue, 17 Feb 2015 14:04:56 +0000 (+0000) Subject: - fixed rounding X-Git-Tag: initial-import-from-subversion-38251~2297 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=327691efff3ce22f8c385973cf204a8913ca587e;p=oweals%2Fgnunet.git - fixed rounding --- 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++)