handle negative time value and prevent a divide by zero
Merge pull request #1440 from un33k/master

handle zero and negative available_requests