HomeClusterLabs Projects

Fix: fencer: get current time correctly

Description

Fix: fencer: get current time correctly

f52bc8e1ce (2.1.2) introduced a regression by using clock_gettime() with
CLOCK_MONOTONIC to get the current time. Use qb_util_timespec_from_epoch_get()
instead (which as of this writing uses clock_gettime() with CLOCK_REALTIME if
available, and falls back to gettimeofday() if not).

Details

Provenance
kgaillotAuthored on Dec 13 2021, 4:22 PM
Parents
rPa0436413106f: Merge pull request #2589 from kgaillot/best-practices
Branches
Unknown
Tags
Unknown

Event Timeline