From 0198933284f311a7b7693b819df5087de90e877a Mon Sep 17 00:00:00 2001 From: Mikhail Galanin Date: Fri, 9 Dec 2022 14:47:33 +0000 Subject: [PATCH] Fixed clocks to microseconds conversion on Mac --- extension/xhprof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extension/xhprof.c b/extension/xhprof.c index 9eecf70d..716d332a 100755 --- a/extension/xhprof.c +++ b/extension/xhprof.c @@ -403,7 +403,7 @@ double get_timebase_conversion() mach_timebase_info_data_t info; (void) mach_timebase_info(&info); - return (info.numer / info.denom) * 1000; + return info.denom * 1000. / info.numer; #endif return 1.0;