Update cpu usage calculation.