mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
cpu stats: do not try parse /proc/stat on android
This commit is contained in:
parent
bd98848343
commit
80a1fcaffb
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue