Fix possibility of TPS being off by one tick.

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