diff --git a/encog-core-cs/Util/Concurrency/DetermineWorkload.cs b/encog-core-cs/Util/Concurrency/DetermineWorkload.cs index c2e65841..557f735e 100644 --- a/encog-core-cs/Util/Concurrency/DetermineWorkload.cs +++ b/encog-core-cs/Util/Concurrency/DetermineWorkload.cs @@ -66,7 +66,7 @@ public DetermineWorkload(int threads, int workloadSize) _workloadSize = workloadSize; if (threads == 0) { - var num = (int) (Math.Log(((int) Process.GetCurrentProcess().ProcessorAffinity + 1), 2)); + var num = Environment.ProcessorCount; // if there is more than one processor, use processor count +1 if (num != 1)