From 33203540ca1fcf096968ecb15fa1dc4f91b4d15b Mon Sep 17 00:00:00 2001 From: redstrate Date: Wed, 10 Nov 2021 05:26:21 -0500 Subject: [PATCH] Fix TickCount() on macOS --- src/xivlauncher.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xivlauncher.cpp b/src/xivlauncher.cpp index 54cc0df..16b5487 100755 --- a/src/xivlauncher.cpp +++ b/src/xivlauncher.cpp @@ -66,7 +66,8 @@ char GetChecksum(unsigned int key) { uint32_t TickCount() { struct mach_timebase_info convfact; mach_timebase_info(&convfact); - return mach_absolute_time() * convfact.numer / convfact.denom / 100; + + return (mach_absolute_time() * convfact.numer) / (convfact.denom * 1000000); } #endif