From 27ccf1fb1fc7bf587cace186c18fbbcf3141b548 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Sep 2018 03:22:44 +0300 Subject: Fix style issues detected by clang tidy. --- src/utils/perfstat.cpp | 6 +++--- src/utils/perfstat.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/perfstat.cpp b/src/utils/perfstat.cpp index 479e97033..2e069c7f9 100644 --- a/src/utils/perfstat.cpp +++ b/src/utils/perfstat.cpp @@ -115,7 +115,7 @@ namespace Perf const int val2 = perf.ticks[counterId]; if (val2 >= val1) return val2 - val1; - return val1 - val1; + return val1 - val2; } int getWorstTime(const size_t counterId) @@ -124,6 +124,6 @@ namespace Perf const int val2 = worstFrameStats.ticks[counterId]; if (val2 >= val1) return val2 - val1; - return val1 - val1; + return val1 - val2; } -} +} // namespace Perf diff --git a/src/utils/perfstat.h b/src/utils/perfstat.h index 95a3333f6..d1928b774 100644 --- a/src/utils/perfstat.h +++ b/src/utils/perfstat.h @@ -46,7 +46,7 @@ namespace Perf int getTime(const size_t frameId, const size_t counterId); int getWorstTime(const size_t counterId); -} +} // namespace Perf extern PerfStats perfStats[PERFSTAT_MAX]; extern size_t perfFrameId; -- cgit v1.2.3-60-g2f50