sys/ps: s/float/int for runtime

The high precision isn't needed, use per mille instead.
Circumvents printf problems on some platforms.

Also: prevent division by zero.
sys/ps: fix comment style, superfluous declaration
Merge pull request #1352 from LudwigOrtmann/nofloat

sys/ps: don't use float for runtime calculations