From bee4e403853748531e48671173a93bf499c3a966 Mon Sep 17 00:00:00 2001 From: Hacene SI HADJ MOHAND Date: Wed, 26 Feb 2020 14:22:29 +0100 Subject: [PATCH] tests ok --- CMakeLists.txt | 2 +- src/Parameters/StatisticData.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ef1fb2..bf19930 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,7 @@ add_subdirectory(src/XMLRequest) add_subdirectory(src/SpiceKernel) add_subdirectory(src/amdaXMLRequestorTool) add_subdirectory(src/amdaParameterGenerator) -#add_subdirectory(src/expressionParser) +add_subdirectory(src/expressionParser) add_subdirectory(src/amdaParameterInfo) add_subdirectory(src/amdaGetErrorMsg) add_subdirectory(src/PostProcessing) diff --git a/src/Parameters/StatisticData.hh b/src/Parameters/StatisticData.hh index ba42dc9..de85f8e 100644 --- a/src/Parameters/StatisticData.hh +++ b/src/Parameters/StatisticData.hh @@ -36,7 +36,7 @@ void pushStatisticDataInVectorString(std::vector &result, std::vect //push coverage if (isCoverageIndependantOfResultType && (coverage.size() >= 1)) return; - double c = (double)data._nbDataProcessed / (double)ideal; + double c = (double)data._nbDataProcessed / ((double)ideal+1); if (c < 0.) c = 0.; if (c > 1.) -- libgit2 0.21.2