From: Howard Chu Date: Thu, 17 Mar 2005 04:44:21 +0000 (+0000) Subject: ITS#3542 if slapd processes too slowly, time diff can go negative X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~51 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d1050c5aa240047149f09c1a9dec4b448cc93776;p=openldap ITS#3542 if slapd processes too slowly, time diff can go negative --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index eebc46c6f5..731a3d0e1a 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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;