Fix boundary condition for caps timeouts

Fix issue where a max caps or caps percent of 0 would result in a
timeout.  (Thanks Fuxorfly for the bug report.)