From: Martin Quinson Date: Tue, 8 Oct 2019 06:57:17 +0000 (+0200) Subject: please clang-static by initializing p_idle only once X-Git-Tag: v3.24~10 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/67d3309c513219e94245694e6cfccacc19885e96?ds=sidebyside please clang-static by initializing p_idle only once --- diff --git a/src/plugins/host_energy.cpp b/src/plugins/host_energy.cpp index 0945b70244..323884422e 100644 --- a/src/plugins/host_energy.cpp +++ b/src/plugins/host_energy.cpp @@ -356,8 +356,6 @@ void HostEnergy::init_watts_range_list() double p_epsilon; if (current_power_values.size() == 3) { - p_idle = xbt_str_parse_double((current_power_values.at(0)).c_str(), - "Invalid obsolete XML file. Fix your watt_per_state property."); p_one_core = xbt_str_parse_double((current_power_values.at(1)).c_str(), "Invalid obsolete XML file. Fix your watt_per_state property."); p_full = xbt_str_parse_double((current_power_values.at(2)).c_str(), @@ -368,8 +366,6 @@ void HostEnergy::init_watts_range_list() p_epsilon = p_one_core - ((p_full - p_one_core) / (host_->get_core_count() - 1)); } } else { // consuption given with idle and full only - p_idle = xbt_str_parse_double((current_power_values.at(0)).c_str(), - "Invalid obsolete XML file. Fix your watt_per_state property."); p_full = xbt_str_parse_double((current_power_values.at(1)).c_str(), "Invalid obsolete XML file. Fix your watt_per_state property."); if (host_->get_core_count() == 1) {