protect against division by zero on systems with no swap

Our storage array is configured without swap space which was causing the sub process to crash with a division by 0 error. Just protecting against that.