mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-22 23:59:34 -05:00
unparse checkpoint time in minutes (ITS#6370)
This commit is contained in:
parent
9a65f35f2e
commit
17a185b32a
1 changed files with 4 additions and 1 deletions
|
|
@ -2690,8 +2690,11 @@ sp_cf_gen(ConfigArgs *c)
|
||||||
case SP_CHKPT:
|
case SP_CHKPT:
|
||||||
if ( si->si_chkops || si->si_chktime ) {
|
if ( si->si_chkops || si->si_chktime ) {
|
||||||
struct berval bv;
|
struct berval bv;
|
||||||
|
/* we assume si_chktime is a multiple of 60
|
||||||
|
* because the parsed value was originally
|
||||||
|
* multiplied by 60 */
|
||||||
bv.bv_len = snprintf( c->cr_msg, sizeof( c->cr_msg ),
|
bv.bv_len = snprintf( c->cr_msg, sizeof( c->cr_msg ),
|
||||||
"%d %d", si->si_chkops, si->si_chktime );
|
"%d %d", si->si_chkops, si->si_chktime/60 );
|
||||||
if ( bv.bv_len >= sizeof( c->cr_msg ) ) {
|
if ( bv.bv_len >= sizeof( c->cr_msg ) ) {
|
||||||
rc = 1;
|
rc = 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue