From 4df8736ce89c18b76bd9fdb319ef79b4bd881a46 Mon Sep 17 00:00:00 2001 From: Mateusz Daniluk <121170681+VeithMetro@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:46:54 +0100 Subject: [PATCH] Make sure so that m_lastUpdateCpuStats is not defined on Apple but just Linux --- Source/core/SystemInfo.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Source/core/SystemInfo.h b/Source/core/SystemInfo.h index 687278512..4202eff51 100644 --- a/Source/core/SystemInfo.h +++ b/Source/core/SystemInfo.h @@ -239,9 +239,6 @@ namespace Core { mutable uint64_t m_freeswap; mutable uint64_t m_cpuload; mutable uint64_t m_cpuloadavg[3]; -#ifdef __LINUX__ - mutable time_t m_lastUpdateCpuStats; -#endif void UpdateCpuStats() const; void UpdateRealtimeInfo(); @@ -251,6 +248,8 @@ namespace Core { mutable uint64_t m_prevCpuSystemTicks; mutable uint64_t m_prevCpuUserTicks; mutable uint64_t m_prevCpuIdleTicks; +#elif defined(__LINUX__) + mutable time_t m_lastUpdateCpuStats; #endif }; // class SystemInfo } // namespace Core