From 17cc4c8dcf49d87da15d4a78c33f094c47b6f073 Mon Sep 17 00:00:00 2001 From: Tichau Date: Thu, 21 Apr 2016 08:18:56 +0200 Subject: [PATCH] Reduce the maximum number of simultaneous conversions. --- Application/FileConverter/Application.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/FileConverter/Application.xaml.cs b/Application/FileConverter/Application.xaml.cs index f114db6..a4a09d5 100644 --- a/Application/FileConverter/Application.xaml.cs +++ b/Application/FileConverter/Application.xaml.cs @@ -173,8 +173,8 @@ namespace FileConverter private void Initialize() { Diagnostics.Debug.Log("File Converter v" + ApplicationVersion.ToString()); - Diagnostics.Debug.Log("The number of processors on this computer is {0}. Set the default number of conversion threads to {0}", Environment.ProcessorCount); - this.numberOfConversionThread = Environment.ProcessorCount; + this.numberOfConversionThread = System.Math.Max(1, Environment.ProcessorCount / 2); + Diagnostics.Debug.Log("The number of processors on this computer is {0}. Set the default number of conversion threads to {0}", this.numberOfConversionThread); // Retrieve arguments. Debug.Log("Retrieve arguments...");