mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-16 14:31:31 -06:00
cpu stats: do not try parse /proc/stat on android
This commit is contained in:
parent
919cb8e05c
commit
976b0a8f1d
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user