changes number of bars in the bar graph depending on the number of cores
no longer used