Use INT64_MAX and multiplications rather than bitshifts for log rate limitation

fixes: #1130

Signed-off-by: Olivier Mehani <olivier.mehani@nicta.com.au>