Calculate CPU percent like a htop