mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-21 11:33:35 +00:00
perf_stats: Resolve implicit int to double conversion error
We simply need to turn the literal argument to std::accumulate into a double, rather than an int.
This commit is contained in:
@@ -81,7 +81,7 @@ double PerfStats::GetMeanFrametime() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
const double sum = std::accumulate(perf_history.begin() + IgnoreFrames,
|
const double sum = std::accumulate(perf_history.begin() + IgnoreFrames,
|
||||||
perf_history.begin() + current_index, 0);
|
perf_history.begin() + current_index, 0.0);
|
||||||
return sum / (current_index - IgnoreFrames);
|
return sum / (current_index - IgnoreFrames);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user