Ensure CPU total is an integer before performing math

This ensures we don’t get bitten by the bug fixed in: opscode/ohai#421

/cc @opscode-cookbooks/release-engineers