Commit ff4ef910 authored by Carla Guillen's avatar Carla Guillen
Browse files

Removing unnecessary check.

parent ae109036
......@@ -58,15 +58,6 @@ void SMUCNGPerfOperator::printConfig(LOG_LEVEL ll) {
void SMUCNGPerfOperator::compute(U_Ptr unit) {
auto inputs = unit->getInputs();
auto timestamp = getTimestamp() - 10e9 ; //ToDo timestamp minus some time...
if (_metricToPosition.size() <3) {
for (auto& inSensor:unit->getInputs()){
_metricToPosition[inSensor->getMetric()] = inSensor->getPosition();
}
for (auto& outSensor:unit->getOutputs()){
_metricToPosition[outSensor->getMetric()] = outSensor->getPosition();
}
}
for(auto& outSensor : unit->getOutputs()){
if( outSensor->getMetric() == SMUCSensorBase::CPI) {
std::vector<reading_t> & instructions = _buffers[0];
......
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