From d0e5fabc7e167b3037a9c4fa6c537546b602a6cb Mon Sep 17 00:00:00 2001 From: moneta <lorenzo.moneta@cern.ch> Date: Mon, 7 Aug 2017 12:49:05 +0200 Subject: [PATCH] Fix the automatic computation of chunks --- math/mathcore/src/FitUtil.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/math/mathcore/src/FitUtil.cxx b/math/mathcore/src/FitUtil.cxx index b74b77bf1d0..c20d463a944 100644 --- a/math/mathcore/src/FitUtil.cxx +++ b/math/mathcore/src/FitUtil.cxx @@ -1425,7 +1425,9 @@ unsigned FitUtil::setAutomaticChunking(unsigned nEvents){ SysInfo_t s; gSystem->GetSysInfo(&s); auto ncpu = s.fCpus; - return ((nEvents/ncpu + 1) % 1000) *40 ; //arbitrary formula + if (nEvents/ncpu < 1000) return ncpu; + return nEvents/1000; + //return ((nEvents/ncpu + 1) % 1000) *40 ; //arbitrary formula } } -- GitLab