mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-01 22:44:13 +08:00
mdbx: fix internal typo.
Change-Id: Ib31e8f02d816758a66b5e6b260714e25648f66c2
This commit is contained in:
parent
93f82f47bd
commit
7780b76cf0
@ -1228,7 +1228,7 @@ __cold void mdbx_osal_jitter(bool tiny) {
|
||||
#elif defined(__APPLE__) || defined(__MACH__)
|
||||
#include <mach/mach_time.h>
|
||||
#elif defined(__linux__) || defined(__gnu_linux__)
|
||||
static __cold clockid_t choise_monoclock() {
|
||||
static __cold clockid_t choice_monoclock() {
|
||||
struct timespec probe;
|
||||
#if defined(CLOCK_BOOTTIME)
|
||||
if (clock_gettime(CLOCK_BOOTTIME, &probe) == 0)
|
||||
@ -1276,7 +1276,7 @@ uint64_t mdbx_osal_monotime(void) {
|
||||
#if defined(__linux__) || defined(__gnu_linux__)
|
||||
static clockid_t posix_clockid = -1;
|
||||
if (unlikely(posix_clockid < 0))
|
||||
posix_clockid = choise_monoclock();
|
||||
posix_clockid = choice_monoclock();
|
||||
#elif defined(CLOCK_MONOTONIC)
|
||||
#define posix_clockid CLOCK_MONOTONIC
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user