From 0d70393bac2aa4668d2f819cda4717b672fdd2c9 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sat, 8 Aug 2020 07:55:33 +0300 Subject: [PATCH] Fix build --- base/common/sleep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/common/sleep.cpp b/base/common/sleep.cpp index 4974d65a39d..85bbc8edfcc 100644 --- a/base/common/sleep.cpp +++ b/base/common/sleep.cpp @@ -26,7 +26,7 @@ void sleepForNanoseconds(uint64_t nanoseconds) if (timebase_info.denom == 0) mach_timebase_info(&timebase_info); - uint64_t time_to_wait = nanoseconds * timebase_info.denom / timebase_info.number; + uint64_t time_to_wait = nanoseconds * timebase_info.denom / timebase_info.numer; uint64_t now = mach_absolute_time(); while (mach_wait_until(now + time_to_wait) != KERN_SUCCESS);