X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/c5a7539afc8ed6dc082772476fe3f74f2fa67e24..11b554369d2b40ed73e3c13bd9876451ae7eb905:/main.cpp?ds=sidebyside diff --git a/main.cpp b/main.cpp index ed8039e..5cf3728 100644 --- a/main.cpp +++ b/main.cpp @@ -243,8 +243,12 @@ int main(int argc, char* argv[]) opt::auto_depl::nhosts, hostdata::size()); opt::auto_depl::nhosts = hostdata::size(); } - if (!opt::auto_depl::load) + if (opt::auto_depl::load == 0.0) { + XBT_WARN("Initial load is zero! Falling back on old behaviour."); opt::auto_depl::load = opt::auto_depl::nhosts; + } else if (opt::auto_depl::load < 0.0) + opt::auto_depl::load = + -opt::auto_depl::load * opt::auto_depl::nhosts; MY_launch_application(); // it is already opt::* aware... } else { MSG_launch_application(opt::deployment_file.c_str());