From 976b0a8f1de937bf92ab69b931a2a41e3d058f13 Mon Sep 17 00:00:00 2001 From: DH Date: Fri, 28 Feb 2025 21:25:57 +0300 Subject: [PATCH] cpu stats: do not try parse /proc/stat on android --- rpcs3/util/cpu_stats.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/util/cpu_stats.cpp b/rpcs3/util/cpu_stats.cpp index c2a63fb35f..42c5304bea 100644 --- a/rpcs3/util/cpu_stats.cpp +++ b/rpcs3/util/cpu_stats.cpp @@ -198,7 +198,7 @@ namespace utils } #elif __linux__ - +#ifndef ANDROID m_previous_idle_times_per_cpu.resize(utils::get_thread_count(), 0.0); m_previous_total_times_per_cpu.resize(utils::get_thread_count(), 0.0); @@ -289,6 +289,7 @@ namespace utils { perf_log.error("Failed to open /proc/stat (%s)", strerror(errno)); } +#endif #else total_usage = get_usage(); #endif