Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more informative error message
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 7 Oct 2019 21:48:13 +0000 (23:48 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 7 Oct 2019 21:48:13 +0000 (23:48 +0200)
src/plugins/host_energy.cpp

index 5867398..88f43b4 100644 (file)
@@ -273,7 +273,7 @@ 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.");
+    xbt_assert(not(cpu_load > 1), "The impossible did happen, as usual. cpu_load is %f", cpu_load);
 
     if (cpu_load > 0)
       host_was_used_ = true;