Permalink
Browse files

Merge pull request #7563 from delroth/crashfix

SystemTimers: fix a 1-in-1000 crash happening in throttler performance reporting
  • Loading branch information...
delroth committed Nov 10, 2018
2 parents 6e9eb7c + a9f7df5 commit f1c41c9a62eed665da7ba4dc995ea1c70b22ef87
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Core/Core/HW/SystemTimers.cpp
@@ -253,7 +253,7 @@ double GetEstimatedEmulationPerformance()
u64 ts_now, ts_before; // In microseconds
{
std::lock_guard<std::mutex> lk(s_emu_to_real_time_mutex);
size_t index_now = s_emu_to_real_time_index == 0 ? s_emu_to_real_time_ring_buffer.size() :
size_t index_now = s_emu_to_real_time_index == 0 ? s_emu_to_real_time_ring_buffer.size() - 1 :
s_emu_to_real_time_index - 1;
size_t index_before = s_emu_to_real_time_index;

0 comments on commit f1c41c9

Please sign in to comment.