X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a487f5837ecc86122e698b3b969533fd453a65c8..7af56922904544bc9570166af5bd17f091960dc7:/src/plugins/host_energy.cpp?ds=sidebyside diff --git a/src/plugins/host_energy.cpp b/src/plugins/host_energy.cpp index a6e0d76aaf..5b3cfca1f0 100644 --- a/src/plugins/host_energy.cpp +++ b/src/plugins/host_energy.cpp @@ -261,9 +261,8 @@ double HostEnergy::get_current_watts_value() /* Divide by the number of cores here to have a value between 0 and 1 */ cpu_load /= host_->pimpl_cpu->get_core_count(); + xbt_assert(not(cpu_load > 1), "The impossible did happen, as usual."); - if (cpu_load > 1) // A machine with a load > 1 consumes as much as a fully loaded machine, not more - cpu_load = 1; if (cpu_load > 0) host_was_used_ = true; }