X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/loba.git/blobdiff_plain/bd600acbc48f84223481d030b89144558bc7ea04..6c5ce85989b0976bbd0a663344cc270433ec1b28:/main.cpp?ds=sidebyside diff --git a/main.cpp b/main.cpp index 490b52e..401a51a 100644 --- a/main.cpp +++ b/main.cpp @@ -80,6 +80,7 @@ int main(int argc, char* argv[]) MSG_clean(); exit(parse_res ? EXIT_NO_FAILURE : EXIT_FAILURE_ARGS); } + INFO3("%s v%s (%s)", opt::program_name.c_str(), version::num.c_str(), version::date.c_str()); opt::print(); TRY { @@ -95,6 +96,11 @@ int main(int argc, char* argv[]) if (opt::auto_depl::enabled) { if (!opt::auto_depl::nhosts) opt::auto_depl::nhosts = hostdata::size(); + if (opt::auto_depl::nhosts > hostdata::size()) { + WARN2("%u hosts is too much: limiting to %u", + opt::auto_depl::nhosts, (unsigned )hostdata::size()); + opt::auto_depl::nhosts = hostdata::size(); + } if (!opt::auto_depl::load) opt::auto_depl::load = opt::auto_depl::nhosts; MY_launch_application(); // it is already opt::* aware...