r4103: lock timeout is in milliseconds (as in reply.c)
authorHerb Lewis <herb@samba.org>
Wed, 8 Dec 2004 17:30:50 +0000 (17:30 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:34 +0000 (10:53 -0500)
(This used to be commit 1feda3649fa5dd7233ea66057fc431948c87825b)

source3/torture/torture.c

index 6c3860e233e0f15adb826160f94e4e032eec8f63..91732d69735e9e3ab90b5fabd1580cf8d175431b 100644 (file)
@@ -870,7 +870,7 @@ static BOOL run_locktest1(int dummy)
        lock_timeout = (1 + (random() % 20));
        printf("Testing lock timeout with timeout=%u\n", lock_timeout);
        t1 = time(NULL);
-       if (cli_lock(cli2, fnum3, 0, 4, lock_timeout * 500, WRITE_LOCK)) {
+       if (cli_lock(cli2, fnum3, 0, 4, lock_timeout * 1000, WRITE_LOCK)) {
                printf("lock3 succeeded! This is a locking bug\n");
                return False;
        } else {