Calculate correct cpu usage in cpu_usage script

Fixes issue #74