From a77ad742cacf6a7f30d92427c73f9a6d5af3e22f Mon Sep 17 00:00:00 2001 From: Mateusz Daniluk <121170681+VeithMetro@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:48:47 +0100 Subject: [PATCH] Simplify the conditions for m_lastUpdateCpuStats initialization --- Source/core/SystemInfo.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/core/SystemInfo.cpp b/Source/core/SystemInfo.cpp index ef705eed1..e519b8c55 100644 --- a/Source/core/SystemInfo.cpp +++ b/Source/core/SystemInfo.cpp @@ -141,9 +141,6 @@ namespace Core { SystemInfo::SystemInfo() : m_HostName(ConstructHostname()) -#ifdef __LINUX__ - , m_lastUpdateCpuStats(0) -#endif { #ifdef __LINUX__ #ifdef __APPLE__ @@ -173,6 +170,7 @@ namespace Core { m_cpuloadavg[0]=info.loads[0]; m_cpuloadavg[1]=info.loads[1]; m_cpuloadavg[2]=info.loads[2]; + m_lastUpdateCpuStats = 0; #endif #endif