From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:48 +0000 (-0700) Subject: lib/file: Less variation on file lock waits X-Git-Tag: stable-10.2.0~121 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=932781290802e9c152b219c656d18ca03bf4df43;p=thirdparty%2Fopen-vm-tools.git lib/file: Less variation on file lock waits The wait time are large enough that less variance will prevent too frequent polling. This is important due to the randomized waiting now. --- diff --git a/open-vm-tools/lib/file/fileLockPrimitive.c b/open-vm-tools/lib/file/fileLockPrimitive.c index 2a64cc5b1..1324b8e24 100644 --- a/open-vm-tools/lib/file/fileLockPrimitive.c +++ b/open-vm-tools/lib/file/fileLockPrimitive.c @@ -153,7 +153,7 @@ FileLockSleeper(LockValues *myValues) // IN/OUT: * (thundering herds). */ - (void) FileSleeper(maxSleepTimeMsec / 10, maxSleepTimeMsec); + (void) FileSleeper(maxSleepTimeMsec / 2, maxSleepTimeMsec); return 0; }