From 53f8d3f01aed0118bafa36c8eabfc558e29f91dd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 6 Jun 2003 10:42:16 +0000 Subject: SMBlockingX timeouts are in units of 2 milliseconds, not 1 (This used to be commit 999cde3227210c90132ade3812e964087f04e541) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 7f0ffd7577..be51a32891 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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); -- cgit