calucate cpu usage based on cpu cores/sockets (#29)