HomeClusterLabs Projects

Refactor: executor: functionize getting current time in timespec

Description

Refactor: executor: functionize getting current time in timespec

... to reduce code duplication.

Also, previously, when executing a resource command, the run and first run
times would be set with separate clock_gettime() calls, so they would slightly
different; this avoids that by copying the run time to the first run time.

Details

Provenance
kgaillotAuthored on Feb 26 2020, 5:42 PM
Parents
rP9075ad9971cf: Low: executor: record correct last run and last rc change times
Branches
Unknown
Tags
Unknown

Event Timeline