Skip to content

Commit

Permalink
Make sure so that m_lastUpdateCpuStats is not defined on Apple but ju…
Browse files Browse the repository at this point in the history
…st Linux
  • Loading branch information
VeithMetro authored Nov 21, 2024
1 parent 287a9a1 commit 4df8736
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Source/core/SystemInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -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
Expand Down

0 comments on commit 4df8736

Please sign in to comment.