summaryrefslogtreecommitdiff
path: root/src/utils/perfstat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-09-09 03:22:44 +0300
committerAndrei Karas <akaras@inbox.ru>2018-09-09 03:22:44 +0300
commit27ccf1fb1fc7bf587cace186c18fbbcf3141b548 (patch)
tree8080855f080db6e27d2474e22244d6f6d649ae0d /src/utils/perfstat.cpp
parenta53db3f4c7ae5424774f59a9244edee11ea3c096 (diff)
downloadmanaverse-27ccf1fb1fc7bf587cace186c18fbbcf3141b548.tar.gz
manaverse-27ccf1fb1fc7bf587cace186c18fbbcf3141b548.tar.bz2
manaverse-27ccf1fb1fc7bf587cace186c18fbbcf3141b548.tar.xz
manaverse-27ccf1fb1fc7bf587cace186c18fbbcf3141b548.zip
Fix style issues detected by clang tidy.
Diffstat (limited to 'src/utils/perfstat.cpp')
-rw-r--r--src/utils/perfstat.cpp6
1 files changed, 3 insertions, 3 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