CPU usage calculation with error handling added
CPU usage calculation with error handling added
CPU usage calculation with error handling added, some bug fixes