Hi,

We noticed that, when using "slapd-watcher -i X" option to refresh display every X seconds, lagging replication statuses are often not cleared, when in fact replication as already recovered.

In our MMR environment, we often see this for longer periods of time in slapd-watcher output :

contextCSN: 20230913104435.605937Z#000000#0dd#000000 actv@2023-09-13 10:44:35, idle@2023-09-13 10:44:37

But when running like this:
do
    timeout --foreground 1 $SLAPDWATCHER -b $BASE -D $LDAPBINDDN -w $ADMINPW "${SERVERURIS[@]}" -s ${SERVERIDS[*]}
done

the lagging replication lines change back to "idle, sync'd" immediately after replication has recovered.

It feels like perhaps there is something wrong in the way the -i X option is implemented.

For the rest: great tool to have!