mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
runqueue update according to the idle timer change
This commit is contained in:
parent
7e7429267e
commit
2b62559aa5
@ -1356,11 +1356,10 @@ slapd_daemon_task(
|
||||
time_t diff = difftime( cat->tv_sec, now );
|
||||
if ( diff == 0 )
|
||||
diff = tdelta;
|
||||
if ( tvp == NULL )
|
||||
tvp = &tv;
|
||||
if ( diff < tv.tv_sec ) {
|
||||
if ( tvp == NULL || diff < tv.tv_sec ) {
|
||||
tv.tv_sec = diff;
|
||||
tv.tv_usec = 0;
|
||||
tvp = &tv;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user