Commit 7014a20155675507c9dbe7e49ff0bd66d3652b09
Exists in
master
and in
49 other branches
Merge branch 'amdadev' into develop
Showing
5 changed files
with
16 additions
and
3 deletions
Show diff stats
CMakeLists.txt
@@ -4,7 +4,7 @@ PROJECT(AMDA-Kernel) | @@ -4,7 +4,7 @@ PROJECT(AMDA-Kernel) | ||
4 | 4 | ||
5 | SET(CPACK_PACKAGE_VERSION_MAJOR "3") | 5 | SET(CPACK_PACKAGE_VERSION_MAJOR "3") |
6 | SET(CPACK_PACKAGE_VERSION_MINOR "6") | 6 | SET(CPACK_PACKAGE_VERSION_MINOR "6") |
7 | -SET(CPACK_PACKAGE_VERSION_PATCH "0") | 7 | +SET(CPACK_PACKAGE_VERSION_PATCH "2") |
8 | 8 | ||
9 | set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE}/bin/) | 9 | set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE}/bin/) |
10 | set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/build/${CMAKE_BUILD_TYPE}/lib/) | 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,6 +224,16 @@ namespace DDServerInterface { | ||
224 | sleep(2); | 224 | sleep(2); |
225 | error = lDDClient.DD_SetTime(lId, startTime); | 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 | if (error < 0) | 237 | if (error < 0) |
228 | { | 238 | { |
229 | lDDClient.DD_Close(lId); | 239 | lDDClient.DD_Close(lId); |
src/ParamOutputImpl/Plot/Time/TimePlot.cc
@@ -1792,7 +1792,7 @@ namespace plot | @@ -1792,7 +1792,7 @@ namespace plot | ||
1792 | AMDA::Info::ParamInfoSPtr paramInfo = AMDA::Info::ParamMgr::getInstance()->getParamInfoFromId(p->getInfoId()); | 1792 | AMDA::Info::ParamInfoSPtr paramInfo = AMDA::Info::ParamMgr::getInstance()->getParamInfoFromId(p->getInfoId()); |
1793 | 1793 | ||
1794 | //get computed values | 1794 | //get computed values |
1795 | - int startIndex, nbData; | 1795 | + int startIndex, nbData = 0; |
1796 | data.getIntervalBounds(startDate, stopDate, startIndex, nbData); | 1796 | data.getIntervalBounds(startDate, stopDate, startIndex, nbData); |
1797 | 1797 | ||
1798 | Color crtColor; | 1798 | Color crtColor; |
src/Parameters/DataTypeMath.hh
@@ -1564,7 +1564,7 @@ template<typename Type> | @@ -1564,7 +1564,7 @@ template<typename Type> | ||
1564 | bool isValid(const std::string& num) { | 1564 | bool isValid(const std::string& num) { |
1565 | bool flag = true; | 1565 | bool flag = true; |
1566 | try { | 1566 | try { |
1567 | - Type tmp = boost::lexical_cast<Type>(num); | 1567 | + boost::lexical_cast<Type>(num); |
1568 | } catch (boost::bad_lexical_cast &e) { | 1568 | } catch (boost::bad_lexical_cast &e) { |
1569 | flag = false; | 1569 | flag = false; |
1570 | } | 1570 | } |
src/TimeTableCatalog/VOTableWriter.cc
@@ -193,6 +193,9 @@ void VOTableWriter::writeVOTable(const TimeTable& pTT, | @@ -193,6 +193,9 @@ void VOTableWriter::writeVOTable(const TimeTable& pTT, | ||
193 | case ParameterDescription::ParameterType::String: | 193 | case ParameterDescription::ParameterType::String: |
194 | size = -1; | 194 | size = -1; |
195 | break; | 195 | break; |
196 | + default: | ||
197 | + // Nothing to do | ||
198 | + break; | ||
196 | } | 199 | } |
197 | } | 200 | } |
198 | 201 |