Commit bd2130dbff549eedbc8d54402223b04b747c45cd
1 parent
3ff2d228
Exists in
master
and in
60 other branches
Fix gap threshold whith sampling under ref param
Showing
2 changed files
with
2 additions
and
1 deletions
Show diff stats
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); | ... | ... |