diff options
author | archshift <gh@archshift.com> | 2015-05-08 00:50:23 +0200 |
---|---|---|
committer | archshift <gh@archshift.com> | 2015-05-08 00:50:23 +0200 |
commit | acc242f6f13b406fd7776c347b1d492a39a4a6a6 (patch) | |
tree | e463e41f3058b2c440e021ab1fc568ebbc952883 /src/common | |
parent | Merge pull request #724 from citra-emu/arch-misdetection (diff) | |
parent | Profiler: Fix off-by-one error when computing average. (diff) | |
download | yuzu-acc242f6f13b406fd7776c347b1d492a39a4a6a6.tar yuzu-acc242f6f13b406fd7776c347b1d492a39a4a6a6.tar.gz yuzu-acc242f6f13b406fd7776c347b1d492a39a4a6a6.tar.bz2 yuzu-acc242f6f13b406fd7776c347b1d492a39a4a6a6.tar.lz yuzu-acc242f6f13b406fd7776c347b1d492a39a4a6a6.tar.xz yuzu-acc242f6f13b406fd7776c347b1d492a39a4a6a6.tar.zst yuzu-acc242f6f13b406fd7776c347b1d492a39a4a6a6.zip |
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/profiler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/profiler.cpp b/src/common/profiler.cpp index b8cde1785..cf6b6b258 100644 --- a/src/common/profiler.cpp +++ b/src/common/profiler.cpp @@ -126,10 +126,9 @@ void TimingResultsAggregator::AddFrame(const ProfilingFrameResult& frame_result) static AggregatedDuration AggregateField(const std::vector<Duration>& v, size_t len) { AggregatedDuration result; result.avg = Duration::zero(); - result.min = result.max = (len == 0 ? Duration::zero() : v[0]); - for (size_t i = 1; i < len; ++i) { + for (size_t i = 0; i < len; ++i) { Duration value = v[i]; result.avg += value; result.min = std::min(result.min, value); |