From f66700296b3b34f54571d473e82ac9d5932a759c Mon Sep 17 00:00:00 2001 From: Albert Sebastian <73123610+alou-S@users.noreply.github.com> Date: Thu, 31 Aug 2023 12:41:13 +0530 Subject: [PATCH] logging: fix bug where 97th percentile prints frametime instead of fps --- src/logging.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging.cpp b/src/logging.cpp index 34205c2e..d193c426 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -88,7 +88,7 @@ static void writeSummary(string filename){ out << fixed << setprecision(1) << result << ","; } // 97th percentile - result = sorted.empty() ? 0.0f : sorted[floor(0.97 * (sorted.size() - 1))].frametime; + result = sorted.empty() ? 0.0f : 1000 / sorted[floor(0.97 * (sorted.size() - 1))].frametime; out << fixed << setprecision(1) << result << ","; // avg total = 0;