Fix program not working if in HT off mode, the specified number of cores went over the amount of CPUs present