Ensure CPU total is an integer before performing math

This ensures we don’t get bitten by the bug fixed in: opscode/ohai#421
Merge pull request #57 from opscode-cookbooks/schisamo/total-cpu-fix

Ensure CPU total is an integer before performing math