Commit 401c20f93d428f32254a9dc26578166a49d6ec5d

Authored by Hacene SI HADJ MOHAND
1 parent 68c29629

improving 4788

Showing 1 changed file with 9 additions and 5 deletions   Show diff stats
src/ParamOutputImpl/Statistic/StatisticOutput.cc
... ... @@ -213,13 +213,15 @@ void StatisticOutput::initCatalog(std::string paramId)
213 213  
214 214 _statisticCatalogMap[paramId]._description.push_back("Generated by CDPP/AMDA Statistic Module");
215 215 //adding other infomation
216   - for (auto processDes: _processDescriptionList)
  216 +
  217 + for (ProcessDescription processDes: _processDescriptionList)
217 218 {
218 219 std::stringstream statInfo;
219 220 AMDA::Info::ParamInfoSPtr paramInfo = AMDA::Info::ParamMgr::getInstance()->getParamInfoFromId(processDes._paramId);
220 221  
221 222 //AMDA::Info::MissionInfoSPtr missionInfo = AMDA::Info::MissionMgr::getInstance()->getMissionInfoFromId(processDes._paramId);
222   - statInfo<<"by using param ";
  223 + if(processDes._index == _processDescriptionList.front()._index)
  224 + statInfo<<"by using params: \n";
223 225  
224 226 if(paramInfo->getInstrumentId() !="")
225 227 {
... ... @@ -239,9 +241,11 @@ void StatisticOutput::initCatalog(std::string paramId)
239 241 // ading information about the origin
240 242 if (_timeIntervalList->size() ==1 && _timeIntervalList->front()._ttPath.empty() && _timeIntervalList->front()._ttName.empty())
241 243 {
242   - statInfo<<"\nwith interval : ";
243   - statInfo<<AMDA::TimeUtil::formatTimeDateInIso(_timeIntervalList->front()._startTime)<<" - ";
244   - statInfo<<AMDA::TimeUtil::formatTimeDateInIso(_timeIntervalList->front()._stopTime);
  244 + if(processDes._index == _processDescriptionList.back()._index){
  245 + statInfo<<"\nwith interval : ";
  246 + statInfo<<AMDA::TimeUtil::formatTimeDateInIso(_timeIntervalList->front()._startTime)<<" - ";
  247 + statInfo<<AMDA::TimeUtil::formatTimeDateInIso(_timeIntervalList->front()._stopTime);
  248 + }
245 249 }else{
246 250 statInfo<<"\nfrom TimeTable/Catalog: ";
247 251 if(_currentTimeInterval->_ttName.empty())
... ...