]> Savannah Git Hosting - gnulib.git/commit
readutmp: Get the boot time with higher precision.
authorBruno Haible <bruno@clisp.org>
Tue, 8 Aug 2023 19:28:46 +0000 (21:28 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 8 Aug 2023 19:28:46 +0000 (21:28 +0200)
commit4b2608934b924f5aafd3ad15444595450298c589
tree77c1eac832729baf99df8d9645aaf27721a10762
parentadf1ff12e6f84266c44584e4405fb0c2b391ccb2
readutmp: Get the boot time with higher precision.

Suggested by Thorsten Kukuk <kukuk@suse.com> in
<https://github.com/thkukuk/utmpx/blob/main/utmp-to-logind.md#determine-boot-time>.

* lib/readutmp.c (get_boot_time_uncached): Try clock_gettime first.
ChangeLog
lib/readutmp.c