From 54ca77183b63946025c7953cdb9fb558b6b91b1d Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Fri, 10 Sep 2010 20:28:41 +0200 Subject: s4/torture: use time_mono for timeouts --- source4/torture/basic/secleak.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture') 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; } -- cgit