From 8ead37a610a7f0424fccb1cca91f1ebeb55485a5 Mon Sep 17 00:00:00 2001 From: "Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com)" Date: Tue, 3 Aug 2021 21:15:43 +0100 Subject: Try fix last commit on Mac OS. --- include/llfio/revision.hpp | 6 +++--- include/llfio/v2.0/detail/impl/posix/utils.ipp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/llfio/revision.hpp b/include/llfio/revision.hpp index 905c3a59..57cfc606 100644 --- a/include/llfio/revision.hpp +++ b/include/llfio/revision.hpp @@ -1,4 +1,4 @@ // Note the second line of this file must ALWAYS be the git SHA, third line ALWAYS the git SHA update time -#define LLFIO_PREVIOUS_COMMIT_REF d867bd612097979ca40b07852abbf7332538ab98 -#define LLFIO_PREVIOUS_COMMIT_DATE "2021-08-03 17:03:03 +00:00" -#define LLFIO_PREVIOUS_COMMIT_UNIQUE d867bd61 +#define LLFIO_PREVIOUS_COMMIT_REF 5544436fd6654fcc6cd6b3a9c3f3b9b7e0b21865 +#define LLFIO_PREVIOUS_COMMIT_DATE "2021-08-03 19:34:21 +00:00" +#define LLFIO_PREVIOUS_COMMIT_UNIQUE 5544436f diff --git a/include/llfio/v2.0/detail/impl/posix/utils.ipp b/include/llfio/v2.0/detail/impl/posix/utils.ipp index 1461ae8f..4a1649b7 100644 --- a/include/llfio/v2.0/detail/impl/posix/utils.ipp +++ b/include/llfio/v2.0/detail/impl/posix/utils.ipp @@ -1,5 +1,5 @@ /* Misc utilities -(C) 2016-2017 Niall Douglas (6 commits) +(C) 2016-2021 Niall Douglas (6 commits) File Created: Jan 2015 @@ -555,12 +555,12 @@ namespace utils ret.system_ns_in_kernel_mode += cpuInfo[CPU_STATE_MAX * n + CPU_STATE_SYSTEM]; ret.system_ns_in_idle_mode += cpuInfo[CPU_STATE_MAX * n + CPU_STATE_IDLE]; } - vm_deallocate(mach_task_self(), cpuInfo, sizeof(integer_t) * numCPUInfo); + vm_deallocate(mach_task_self(), cpuInfo, sizeof(integer_t) * numCpuInfo); static const double ts_multiplier = [] { mach_timebase_info_data_t timebase; mach_timebase_info(&timebase); return (double) timebase.numer / timebase.denom; - }; + }(); 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); -- cgit v1.2.3