s4/torture: use time_mono for timeouts
authorBjörn Jacke <bj@sernet.de>
Fri, 10 Sep 2010 18:28:41 +0000 (20:28 +0200)
committerBjörn Jacke <bj@sernet.de>
Fri, 10 Sep 2010 21:10:25 +0000 (23:10 +0200)
source4/torture/basic/secleak.c

index 92dc3508f36f9af060bf4842b143d26a90d99435..4c73df1a0f98c3e1436576ebf9b1b4ef472f0a4b 100644 (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;
                }