mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
cpu stats: do not try parse /proc/stat on android
This commit is contained in:
parent
919cb8e05c
commit
976b0a8f1d
1 changed files with 2 additions and 1 deletions
|
@ -198,7 +198,7 @@ namespace utils
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif __linux__
|
#elif __linux__
|
||||||
|
#ifndef ANDROID
|
||||||
m_previous_idle_times_per_cpu.resize(utils::get_thread_count(), 0.0);
|
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);
|
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));
|
perf_log.error("Failed to open /proc/stat (%s)", strerror(errno));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
total_usage = get_usage();
|
total_usage = get_usage();
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue