Fix cpu usage calculation