Commit 0c3afa7e authored by Carla Guillen Carias's avatar Carla Guillen Carias
Browse files

Small bugfix

parent c4f29335
......@@ -198,9 +198,9 @@ void SMUCNGPerfOperator::computeMetricRatio(std::vector<SMUCNGPtr>& inputs, SMUC
query(inputs[_metricToPosition[metric_dividend]]->getName(), timestamp, dividend);
query(inputs[_metricToPosition[metric_divisor]]->getName(), timestamp, divisor);
bool wascalced = false;
reading_t cpi;
if (dividend.size() > 0 && divisor.size() > 0 && calculateMetricRatio(dividend[0], divisor[0], cpi, outSensor->getMetadata()->scale)) {
outSensor->storeReading(cpi);
reading_t ratio;
if (dividend.size() > 0 && divisor.size() > 0 && calculateMetricRatio(dividend[0], divisor[0], ratio, outSensor->getMetadata()->scale)) {
outSensor->storeReading(ratio);
}
}
......@@ -250,7 +250,7 @@ void SMUCNGPerfOperator::computeLOADIMBALANCES(std::vector<SMUCNGPtr>& inputs, S
result.value = largest->value - smallest->value;
} else if (outSensor->getMetric() == SMUCSensorBase::INTRA_NODE_LOADIMBALANCE) {
} else { //outSensor->getMetric() == SMUCSensorBase::INTER_NODE_LOADIMBALANCE
//calculate avg
result.value = computeAvg(cpus_vec);
}
......
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