Open ai386 opened 7 years ago
SYSTEM_INFO sysinfo; GetSystemInfo(&sysinfo); int cores = sysinfo.dwNumberOfProcessors;
and
case 'l': this->SetLimit(atoi(optarg)*cores); break;
if (l < 1 || l > (100*cores)) { fprintf(stderr,"Error: Limit must be in the range 1-100.\n"); this->m_error += 1; }
Hello @ai386,
I invite you to submit a pull request.
SYSTEM_INFO sysinfo; GetSystemInfo(&sysinfo); int cores = sysinfo.dwNumberOfProcessors;
and
and