Commit 8cd29beedbc4faad88d51621cb5586c530ed81ba
1 parent
7740f037
Exists in
master
and in
50 other branches
Fix #10035
Showing
2 changed files
with
11 additions
and
1 deletions
Show diff stats
CMakeLists.txt
... | ... | @@ -4,7 +4,7 @@ PROJECT(AMDA-Kernel) |
4 | 4 | |
5 | 5 | SET(CPACK_PACKAGE_VERSION_MAJOR "3") |
6 | 6 | SET(CPACK_PACKAGE_VERSION_MINOR "6") |
7 | -SET(CPACK_PACKAGE_VERSION_PATCH "0") | |
7 | +SET(CPACK_PACKAGE_VERSION_PATCH "1") | |
8 | 8 | |
9 | 9 | set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE}/bin/) |
10 | 10 | set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE}/lib/) | ... | ... |
src/ParamGetImpl/DDServerInterface/VirtualInstrument.cc
... | ... | @@ -224,6 +224,16 @@ namespace DDServerInterface { |
224 | 224 | sleep(2); |
225 | 225 | error = lDDClient.DD_SetTime(lId, startTime); |
226 | 226 | } |
227 | + if (error == NODATAATTIME) { | |
228 | + // In some case, GlobalStart can be not exactly the real first time's record of a dataset... | |
229 | + int offset = 0; | |
230 | + while (error == NODATAATTIME && offset < 60) { | |
231 | + ++offset; | |
232 | + LOG4CXX_DEBUG(gLogger, "VirtualInstrument::getParamPusher: DD_SetTime("<< startTime << ") returns = (" << error << ")"); | |
233 | + Double2DD_Time(startTime,_globalStartTime+offset); | |
234 | + error = lDDClient.DD_SetTime(lId, startTime); | |
235 | + } | |
236 | + } | |
227 | 237 | if (error < 0) |
228 | 238 | { |
229 | 239 | lDDClient.DD_Close(lId); | ... | ... |