From d1050c5aa240047149f09c1a9dec4b448cc93776 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 17 Mar 2005 04:44:21 +0000 Subject: [PATCH] ITS#3542 if slapd processes too slowly, time diff can go negative --- servers/slapd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5