diff options
Diffstat (limited to 'source4/torture/basic')
-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; } |