added pi calc for CPU usage