use nprocs() function instead of /proc/cpuinfo