]> AND Private Git Repository - loba.git/blobdiff - main.cpp
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
Fix run-all script broken by commits cd83815d1a and d3914e4821.
[loba.git] / main.cpp
index ed8039e2c0ea5d3d3a392ab12ce067cd5c46f15a..5cf37287a034275e2ea17384c573dd51bb4464fa 100644 (file)
--- 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());