HomeClusterLabs Projects

Refactor: libcrmcommon,liblrmd: avoid gettimeofday()

Description

Refactor: libcrmcommon,liblrmd: avoid gettimeofday()

qb_util_timespec_from_epoch_get() is preferred for getting the current time
with subsecond resolution

This is accomplished by replacing pcmktime_timeval_hr_convert() with a more
narrowly focused pcmk
time_hr_now() for the only callers' use case

Details

Provenance
kgaillotAuthored on Apr 28 2022, 5:47 PM
Parents
rP27a589583b80: Refactor: libcrmcommon: make crm_errno2exit() unusable internally
Branches
Unknown
Tags
Unknown