diff options
author | Björn Jacke <bj@sernet.de> | 2010-09-10 20:28:41 +0200 |
---|---|---|
committer | Björn Jacke <bj@sernet.de> | 2010-09-10 23:10:25 +0200 |
commit | 54ca77183b63946025c7953cdb9fb558b6b91b1d (patch) | |
tree | a802a9aafa54bad21d34f7cf4f74a129b24d4d7c | |
parent | 478ac36b9c4b655c013846ae5ec02c56cbc626d7 (diff) | |
download | samba-54ca77183b63946025c7953cdb9fb558b6b91b1d.tar.gz samba-54ca77183b63946025c7953cdb9fb558b6b91b1d.tar.bz2 samba-54ca77183b63946025c7953cdb9fb558b6b91b1d.zip |
s4/torture: use time_mono for timeouts
-rw-r--r-- | source4/torture/basic/secleak.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/basic/secleak.c b/source4/torture/basic/secleak.c index 92dc3508f3..4c73df1a0f 100644 --- a/source4/torture/basic/secleak.c +++ b/source4/torture/basic/secleak.c @@ -62,10 +62,10 @@ static bool try_failed_login(struct torture_context *tctx, struct smbcli_state * bool torture_sec_leak(struct torture_context *tctx, struct smbcli_state *cli) { - time_t t1 = time(NULL); + time_t t1 = time_mono(NULL); int timelimit = torture_setting_int(tctx, "timelimit", 20); - while (time(NULL) < t1+timelimit) { + while (time_mono(NULL) < t1+timelimit) { if (!try_failed_login(tctx, cli)) { return false; } |