mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
r4103: lock timeout is in milliseconds (as in reply.c)
This commit is contained in:
parent
56b1110c71
commit
1feda3649f
@ -870,7 +870,7 @@ static BOOL run_locktest1(int dummy)
|
|||||||
lock_timeout = (1 + (random() % 20));
|
lock_timeout = (1 + (random() % 20));
|
||||||
printf("Testing lock timeout with timeout=%u\n", lock_timeout);
|
printf("Testing lock timeout with timeout=%u\n", lock_timeout);
|
||||||
t1 = time(NULL);
|
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");
|
printf("lock3 succeeded! This is a locking bug\n");
|
||||||
return False;
|
return False;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user