Use number of scheduled ticks processed last tick as array capacity, not max size.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>