Commit 6ec47c85 authored by Carla Guillen Carias's avatar Carla Guillen Carias
Browse files

Changing configuration file and small fix in the JobTSAggregatorConfigurator

parent 15b6fed0
......@@ -9,17 +9,11 @@ jobtsaggregator cpi {
default def1
number_quantiles 10
input {
sensor "<bottomup 1>cpi"
}
output {
; In this case "bottomup 1" is the sensor tree level associated to compute nodes
sensor "<bottomup 1>deciles/cpi" {
mqttsuffix /decilesXX/cpi
operation quantiles
}
sensor "<bottomup 1>avg/cpi" {
mqttsuffix /avg/cpi
operation average
......@@ -49,11 +43,6 @@ number_quantiles 10
output {
; In this case "bottomup 1" is the sensor tree level associated to compute nodes
sensor "<bottomup 1>deciles/frequency" {
mqttsuffix /decilesXX/frequency
operation quantiles
}
sensor "<bottomup 1>avg/frequency" {
mqttsuffix /avg/frequency
operation average
......
......@@ -88,6 +88,9 @@ bool JobTSAggregatorConfigurator::readUnits(JobTSAggregatorOperator& op,
bool succ = OperatorConfiguratorTemplate::readUnits(op, protoInputs, protoOutputs, inputMode);
int num_quantiles = op.getNumberOfEvenQuantiles();
if(num_quantiles == 0){
return succ;
}
for(int i = 0; i <= num_quantiles; ++i){
std::stringstream builder;
builder << "quantile" << i << " from " << num_quantiles << op.getName();
......
Supports Markdown
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