]> git.sur5r.net Git - openldap/commitdiff
minor tweak
authorKurt Zeilenga <kurt@openldap.org>
Wed, 7 May 2003 22:22:21 +0000 (22:22 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 7 May 2003 22:22:21 +0000 (22:22 +0000)
servers/slapd/daemon.c

index efb0a932fce58b8e7993d78517d0df25b4664ae2..147f1fc819b8d65a9b489f7e9a62fd37880baf94 100644 (file)
@@ -1223,12 +1223,12 @@ slapd_daemon_task(
                time_t                          tdelta = 1;
 #endif
 
+               now = slap_get_time();
+
                if( emfile ) {
-                       now = slap_get_time();
                        connections_timeout_idle( now );
-               }
-               else if ( global_idletimeout > 0 ) {
-                       now = slap_get_time();
+
+               } else if ( global_idletimeout > 0 ) {
                        if ( difftime( last_idle_check+global_idletimeout/SLAPD_IDLE_CHECK_LIMIT, now ) < 0 ) {
                                connections_timeout_idle( now );
                        }