Removed useless array and fixed cpu turning off if online cpus are greater than upcoreslimit