VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-10 01:01:54 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-06-10 01:03:07 +0200
commite14cf93d921e462e9ed5138ae1f4019d9f79a9f3 (patch)
tree2111e488053310333955c1ab0c05caa6020fd975
parent0daf255a190efd921c569402c0309a9d212ce98c (diff)
downloadVeraCrypt-e14cf93d921e462e9ed5138ae1f4019d9f79a9f3.tar.gz
VeraCrypt-e14cf93d921e462e9ed5138ae1f4019d9f79a9f3.zip
Windows: reduce WNetGetConnection performance impact by making calls every 1 minute instead of every 2 seconds. This should be enough since the list of mapped network drive will not change so often.
-rw-r--r--src/Common/Dlgcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 33e02514..f21d551f 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -7154,8 +7154,8 @@ DWORD GetUsedLogicalDrives (void)
finally_do ({ LeaveCriticalSection (&csWNetCalls); });
- /* update values every 2 seconds to reduce CPU consumption */
- if ((time (NULL) - g_lastCallTime) > 2)
+ /* update values every 1 minute to reduce CPU consumption */
+ if ((time (NULL) - g_lastCallTime) > 60)
{
/* detect disconnected mapped network shares and removed
* their associated drives from the list