X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/163f27d1800fc613f521114ccd6b89ebf394746e..68a5f658c68d3637a503f608394d398d1ba3855f:/process.cpp diff --git a/process.cpp b/process.cpp index 45d0621..193c87b 100644 --- a/process.cpp +++ b/process.cpp @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -305,6 +306,8 @@ void process::ctrl_send(neighbor& nb) double process::compute_load_to_send(double desired) { + if (opt::integer_transfer) + desired = std::floor(desired); return desired >= opt::min_transfer_amount ? desired : 0.0; }