Minor tweak to try and fix the occassional ArrayIndexOutOfBounds
problem when printing results. Suspect this stems from a round-up error
pushing the function to believe an event happened after the end of the
simulation run.