SMBlockingX timeouts are in units of 2 milliseconds, not 1
authorAndrew Tridgell <tridge@samba.org>
Fri, 6 Jun 2003 10:42:16 +0000 (10:42 +0000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 6 Jun 2003 10:42:16 +0000 (10:42 +0000)
(This used to be commit 999cde3227210c90132ade3812e964087f04e541)

source3/smbd/reply.c

index 7f0ffd7577c8e691539e314e656499c5c7b7ebb2..be51a328911e3c0ab859f2d67fb01e27eb9cab1f 100644 (file)
@@ -3941,7 +3941,7 @@ no oplock granted on this file (%s).\n", fsp->fnum, fsp->fsp_name));
 
        /* Setup the timeout in seconds. */
 
-       lock_timeout = ((lock_timeout == -1) ? -1 : (lock_timeout+999)/1000);
+       lock_timeout = ((lock_timeout == -1) ? -1 : (lock_timeout+499)/500);
        
        /* Now do any requested locks */
        data += ((large_file_format ? 20 : 10)*num_ulocks);