Fix for setting number of threads when cores > 9

Cores > 9 would cause throttling to always use the lowest number of threads.