Commit 5f50dd77 authored by Iain's avatar Iain
Browse files

simplifying event limit calculation

parent cec8d8ca
Pipeline #52971 passed with stages
in 5 minutes and 33 seconds
......@@ -128,9 +128,7 @@ public:
int eventPerJob = ceil(((double)this->eventLimit) /
nJobs); // TODO: this should be ceil right?
this->startEvent = eventPerJob * job;
if (job == nJobs - 1)
this->eventLimit = this->eventLimit;
else
if (job != nJobs - 1)
this->eventLimit = std::min(startEvent + eventPerJob, this->eventLimit);
this->eventLimit--;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment