Commit bd2130dbff549eedbc8d54402223b04b747c45cd

Authored by Benjamin Renard
1 parent 3ff2d228

Fix gap threshold whith sampling under ref param

src/InternLib/ProcessSamplingUnderRefParam.cc
... ... @@ -70,6 +70,7 @@ TimeStamp ProcessSamplingUnderRefParam::init() {
70 70 _paramRefInput = _refParameterSPtr->getParamData(this).get();
71 71  
72 72 double computedGapSize = _refParameterSPtr->getParameterManager().getComputedGapSize(_parameterInput->getGapThreshold(), _paramInput->getMinSampling());
  73 + _parameter.setGapThreshold(computedGapSize/_paramRefInput->getMinSampling());
73 74  
74 75 // ProcessSamplingClassic _operation creation
75 76 Resampling::CreateResampling lCreateResampling(*this, _timeIntervalList,
... ...
src/XMLParameterConfigurator/ProcessNode.cc
... ... @@ -123,7 +123,7 @@ void ProcessNode::proceed(xmlNodePtr pNode, const AMDA::Parameters::CfgContext&
123 123 else if ( lTimeResolution != 0 ) {
124 124 // Inject Resampling
125 125 std::stringstream lProcessParams;
126   - lProcessParams << lTimeResolution << ";" << lGapThreshold;
  126 + lProcessParams << lTimeResolution;
127 127 expression = injectResamplingIntoProcess("sampling_classic", lProcessParams.str(), expression.c_str());
128 128 }
129 129 lProcess->setExpression(expression);
... ...