VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-06 23:38:20 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2016-12-07 12:36:05 +0100
commit77e665520e9540595e69a1f7b210b407f9d4c7da (patch)
treed98ff7c874e0182f67a1b4094b151d451c933b14
parent91e0de6145402e9d1d888a6b21264668bdb85380 (diff)
downloadVeraCrypt-77e665520e9540595e69a1f7b210b407f9d4c7da.tar.gz
VeraCrypt-77e665520e9540595e69a1f7b210b407f9d4c7da.zip
Windows: don't change thread priority when benchmarking encryption algorithms for more accurate results
-rw-r--r--src/Common/Dlgcode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 04fec471..cc368df5 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -5134,7 +5134,7 @@ static BOOL PerformBenchmark(HWND hBenchDlg, HWND hwndDlg)
startDataUnitNo.Value = 0;
/* set priority to critical only when there are 2 or more CPUs on the system */
- if (sysInfo.dwNumberOfProcessors > 1)
+ if (sysInfo.dwNumberOfProcessors > 1 && (benchmarkType != BENCHMARK_TYPE_ENCRYPTION))
SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_TIME_CRITICAL);
ci = crypto_open ();