]> git.sur5r.net Git - openldap/commitdiff
Fix idle timeout code.
authorKurt Zeilenga <kurt@openldap.org>
Wed, 1 Sep 1999 06:37:46 +0000 (06:37 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 1 Sep 1999 06:37:46 +0000 (06:37 +0000)
servers/slapd/daemon.c

index 3b78fd24b966cb33275b203df3ab2cf3fe6526b9..62e199a30141475cd2792b19e579c4e19db7c1d5 100644 (file)
@@ -436,7 +436,7 @@ slapd_daemon_task(
 )
 {
        int l;
-
+       time_t  last_idle_check = slap_get_time();
        time( &starttime );
 
        for ( l = 0; slap_listeners[l] != NULL; l++ ) {
@@ -471,8 +471,7 @@ slapd_daemon_task(
                int ebadf = 0;
 
 #define SLAPD_IDLE_CHECK_LIMIT 4
-               time_t  last_idle_check = slap_get_time();
-               time_t  now;
+               time_t  now = slap_get_time();
 
 
                fd_set                  readfds;