]> git.sur5r.net Git - openldap/commitdiff
ITS#3542 if slapd processes too slowly, time diff can go negative
authorHoward Chu <hyc@openldap.org>
Thu, 17 Mar 2005 04:44:21 +0000 (04:44 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 17 Mar 2005 04:44:21 +0000 (04:44 +0000)
servers/slapd/daemon.c

index eebc46c6f55a0cad64b8df1c1370ab3ff3847d1f..731a3d0e1a7e6ef382b935da09bfe71ef4d5ef20 100644 (file)
@@ -1674,7 +1674,7 @@ slapd_daemon_task(
 
                if ( cat != NULL ) {
                        time_t diff = difftime( cat->tv_sec, now );
-                       if ( diff == 0 )
+                       if ( diff < 1 )
                                diff = tdelta;
                        if ( tvp == NULL || diff < tv.tv_sec ) {
                                tv.tv_sec = diff;