Commit d050fc57d48f806a9ddac5fcbd3eebd690896389

Authored by Benjamin Renard
1 parent bdc50075

Fix a bug for a request with a start time higher than the parameter global start

src/ParamGetImpl/DDServerInterface/VirtualInstrumentInterval.cc
... ... @@ -167,9 +167,13 @@ namespace AMDA {
167 167 if( (_currentTimeIntToProcess != _timeIntervalList.end()) && setTimeDD()) {
168 168 // Time interval set to the next.
169 169 _timeIntToProcessChanged = true;
170   - _step = &VirtualInstrumentInterval::writeData;
  170 + _nodata = false;
171 171 } else {
172 172 _noMoreTimeInt = true;
  173 + if (!_nodata)
  174 + _step = &VirtualInstrumentInterval::writeData;
  175 + else
  176 + _step = &VirtualInstrumentInterval::writeEmptyData;
173 177 }
174 178  
175 179 for (auto lParam : _paramFlowList) {
... ... @@ -185,8 +189,6 @@ namespace AMDA {
185 189 }
186 190 }
187 191  
188   - _nodata = false;
189   -
190 192 return 0;
191 193 }
192 194  
... ... @@ -211,6 +213,7 @@ namespace AMDA {
211 213 // Nothing to do.
212 214 } else {
213 215 LOG4CXX_DEBUG(gLogger, "VirtualInstrumentInterval => Reached all TimeInterval - " << _paramNameListForLog);
  216 + _nodata = true;
214 217 return false;
215 218 }
216 219  
... ...