From 35275db7880e2f8ec79017a20bf61ccc2462dd09 Mon Sep 17 00:00:00 2001 From: Hacene SI HADJ MOHAND Date: Thu, 17 Jun 2021 11:58:30 +0200 Subject: [PATCH] correcting process args --- src/ExternLib/table_range_indexes/ProcessSumIntoTableIndexes.cc | 2 +- src/ExternLib/table_range_indexes/ProcessSumIntoTableRange.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ExternLib/table_range_indexes/ProcessSumIntoTableIndexes.cc b/src/ExternLib/table_range_indexes/ProcessSumIntoTableIndexes.cc index 4784a1c..6a6a677 100644 --- a/src/ExternLib/table_range_indexes/ProcessSumIntoTableIndexes.cc +++ b/src/ExternLib/table_range_indexes/ProcessSumIntoTableIndexes.cc @@ -38,7 +38,7 @@ namespace Parameters { TimeStamp ProcessSumIntoTableIndexes::init() { if(_attributList.size() !=7 && _attributList.size() !=4){ - BOOST_THROW_EXCEPTION(AMDA::AMDA_exception() << AMDA::errno_code(AMDA_PROCESS_ERR) << AMDA::ex_msg(std::string("ProcessSumIntoTableIndexes::init required at least 4 or 6 attributes'"))); + BOOST_THROW_EXCEPTION(AMDA::AMDA_exception() << AMDA::errno_code(AMDA_PROCESS_ERR) << AMDA::ex_msg(std::string("ProcessSumIntoTableIndexes::init required 4 or 6 attributes'"))); } int relatedDim = atoi(_attributList[0].c_str()); int minIndex1 = atoi(_attributList[1].c_str()); diff --git a/src/ExternLib/table_range_indexes/ProcessSumIntoTableRange.cc b/src/ExternLib/table_range_indexes/ProcessSumIntoTableRange.cc index 1702454..6529d12 100644 --- a/src/ExternLib/table_range_indexes/ProcessSumIntoTableRange.cc +++ b/src/ExternLib/table_range_indexes/ProcessSumIntoTableRange.cc @@ -78,8 +78,8 @@ namespace Parameters { } TimeStamp ProcessSumIntoTableRange::init() { - if (_attributList.size() !=6 && _attributList.size() !=4) { - BOOST_THROW_EXCEPTION(AMDA::AMDA_exception() << AMDA::errno_code(AMDA_PROCESS_ERR) << AMDA::ex_msg(std::string("ProcessSumIntoTableRange::init required at least 3 attributes'"))); + if (_attributList.size() !=7 && _attributList.size() !=4) { + BOOST_THROW_EXCEPTION(AMDA::AMDA_exception() << AMDA::errno_code(AMDA_PROCESS_ERR) << AMDA::ex_msg(std::string("ProcessSumIntoTableRange::init required or 7 attributes'"))); } TimeStamp timeStamp = MultiParamProcess::init(); -- libgit2 0.21.2