diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-08-04 01:18:14 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2021-08-04 01:18:14 +0300 |
commit | 965841f2746788ea78d95061c357806489eb93fc (patch) | |
tree | bbdd958c5e0c9040fbc2df3c2ee2d1bb6b9aca36 | |
parent | c2ac0309a83ebddf78f3d7890c364d95bb04c0c5 (diff) |
Hopefully last fix to make it work on Mac OS.
-rw-r--r-- | include/llfio/v2.0/detail/impl/posix/utils.ipp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llfio/v2.0/detail/impl/posix/utils.ipp b/include/llfio/v2.0/detail/impl/posix/utils.ipp index 45eda47e..df6440a1 100644 --- a/include/llfio/v2.0/detail/impl/posix/utils.ipp +++ b/include/llfio/v2.0/detail/impl/posix/utils.ipp @@ -556,11 +556,11 @@ namespace utils ret.system_ns_in_idle_mode += cpuInfo[CPU_STATE_MAX * n + CPU_STATE_IDLE]; } vm_deallocate(mach_task_self(), (vm_address_t) cpuInfo, sizeof(integer_t) * numCpuInfo); - static const double ts_multiplier = [] { + static const double ts_multiplier = /*[] { mach_timebase_info_data_t timebase; mach_timebase_info(&timebase); return (double) timebase.numer / timebase.denom; - }(); + }();*/ 10000000.0; // no idea why, but apparently this is the multiplier according to Mac CI runners ret.system_ns_in_user_mode = (uint64_t)(ts_multiplier * ret.system_ns_in_user_mode); ret.system_ns_in_kernel_mode = (uint64_t)(ts_multiplier * ret.system_ns_in_kernel_mode); ret.system_ns_in_idle_mode = (uint64_t)(ts_multiplier * ret.system_ns_in_idle_mode); |