mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-22 16:30:57 +01: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:
parent
23878bf360
commit
75dec14f21
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ double PerfStats::GetMeanFrametime() {
|
|||
return 0;
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue