summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-10 20:28:41 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-10 23:10:25 +0200
commit54ca77183b63946025c7953cdb9fb558b6b91b1d (patch)
treea802a9aafa54bad21d34f7cf4f74a129b24d4d7c /source4
parent478ac36b9c4b655c013846ae5ec02c56cbc626d7 (diff)
downloadsamba-54ca77183b63946025c7953cdb9fb558b6b91b1d.tar.gz
samba-54ca77183b63946025c7953cdb9fb558b6b91b1d.tar.bz2
samba-54ca77183b63946025c7953cdb9fb558b6b91b1d.zip
s4/torture: use time_mono for timeouts
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/basic/secleak.c4
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;
}