Replace array with std::vector

This commit is contained in:
Tom Lally 2022-09-01 18:06:55 +01:00
parent 39a8028ff3
commit a372c6ad9d

View file

@ -573,8 +573,8 @@ static void UpdateStats_CemuCpu()
static void UpdateStats_CpuPerCore() static void UpdateStats_CpuPerCore()
{ {
ProcessorTime now[g_state.processor_count]; std::vector<ProcessorTime> now(g_state.processor_count);
QueryCoreTimes(g_state.processor_count, now); QueryCoreTimes(g_state.processor_count, now.data());
for (int32_t i = 0; i < g_state.processor_count; ++i) for (int32_t i = 0; i < g_state.processor_count; ++i)
{ {