Take the lower of the limits

Signed-off-by: Ian Macalinao <ian@giza.us>