From: Pierangelo Masarati Date: Tue, 10 Nov 2009 19:02:33 +0000 (+0000) Subject: unparse checkpoint time in minutes (ITS#6370) X-Git-Tag: ACLCHECK_0~140 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=17a185b32afefe8bcc8ef0e9dda650d9a7eaa858;p=openldap unparse checkpoint time in minutes (ITS#6370) --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 00fb9a8c29..e83da075ed 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -2690,8 +2690,11 @@ sp_cf_gen(ConfigArgs *c) case SP_CHKPT: if ( si->si_chkops || si->si_chktime ) { 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 ), - "%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 ) ) { rc = 1; } else {