The expiration time for new job artifacts in CI/CD pipelines is now 30 days (GitLab default). Previously generated artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit feb6f575 authored by Alessio Netti's avatar Alessio Netti
Browse files

Analytics: minor fixes to Cooling Control plugin

parent a39eb306
......@@ -37,9 +37,7 @@ CoolingControlConfigurator::~CoolingControlConfigurator() {}
void CoolingControlConfigurator::sensorBase(CoolingControlSensorBase& s, CFG_VAL config) {
BOOST_FOREACH(boost::property_tree::iptree::value_type &val, config)
{
if (boost::iequals(val.first, "scaling")) {
s.setScaleFac(std::stod(val.second.data()));
} else if (boost::iequals(val.first, "hotThreshold")) {
if (boost::iequals(val.first, "hotThreshold")) {
s.setHotThreshold(std::stoull(val.second.data()));
}
}
......
......@@ -151,7 +151,7 @@ uint64_t CoolingControlOperator::getNumHotNodes(std::vector<std::vector<reading_
if (!readings[idx].empty()) {
bool hotNode = true;
for (const auto &r : readings[idx]) {
if (r.value < unit->getInputs()[idx]->getHotThreshold()) {
if (r.value < (int64_t)unit->getInputs()[idx]->getHotThreshold()) {
hotNode = false;
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment