IMO this would be the accurate account: if we have:
first event: 101
eventsPerJob: 20
Then previousJobCount = ceil( (101-1)/20 ) = 5 jobs, which make sense: we had 20 jobs in the original workflow.
Three comments:
- do we need to take into account filterEfficiency?
- do we need to convert to int to be on the safe side?
- Why do we need to count the number of previous jobs? I don't think this is actually used in the current job splitting. Is it? Is this just an estimate or some statistics?