Commit 67ec262d authored by Carla Guillen Carias's avatar Carla Guillen Carias
Browse files

Removing sensors from auto publish when they are aggregated to other sensors.

parent 5c5539d6
...@@ -174,6 +174,11 @@ void PerfSensorGroup::execOnInit() { ...@@ -174,6 +174,11 @@ void PerfSensorGroup::execOnInit() {
//found bin aggregating us (could be ourselves) //found bin aggregating us (could be ourselves)
b.aggregator = false; b.aggregator = false;
_sensorBins[bin].aggregator = true; _sensorBins[bin].aggregator = true;
if(cpu != mod) {
for(auto &sensor: b.sensors){
sensor->setPublish(false);
}
}
break; 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