- fixed rounding
authorJulius Bünger <buenger@mytum.de>
Tue, 17 Feb 2015 14:04:56 +0000 (14:04 +0000)
committerJulius Bünger <buenger@mytum.de>
Tue, 17 Feb 2015 14:04:56 +0000 (14:04 +0000)
src/rps/test_rps_multipeer.c

index 9367efff2953f1d750a9f8402c09851e0a065cc2..df897b13da863b3dbc12438365d2fa870a530414 100644 (file)
@@ -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++)