mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05:00
runqueue update according to the idle timer change
This commit is contained in:
parent
7e7429267e
commit
2b62559aa5
1 changed files with 2 additions and 3 deletions
|
|
@ -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 a new issue