X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/163f27d1800fc613f521114ccd6b89ebf394746e..48b49c2ca6573b31386bd5afd4e68304c740e8ec:/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; }