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