1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s4/torture: use time_mono for timeouts

This commit is contained in:
Björn Jacke 2010-09-10 20:28:41 +02:00
parent 478ac36b9c
commit 54ca77183b

View File

@ -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;
}