From b9b808ca123a43c143b3e665239d4541e4f398b5 Mon Sep 17 00:00:00 2001 From: wernhervondata Date: Sun, 17 Nov 2024 10:26:24 +0100 Subject: [PATCH] fixup! percentiles p75, p90 for FindZone view --- profiler/src/profiler/TracyView_FindZone.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyView_FindZone.cpp b/profiler/src/profiler/TracyView_FindZone.cpp index 8ced9ea1..ca4f3846 100644 --- a/profiler/src/profiler/TracyView_FindZone.cpp +++ b/profiler/src/profiler/TracyView_FindZone.cpp @@ -549,12 +549,11 @@ void View::DrawFindZone() std::inplace_merge( vec.begin(), mid, vec.end() ); const auto vsz = vec.size(); - const auto vszQuarter = vsz / 4; if( vsz != 0 ) { m_findZone.average = float( total ) / vsz; m_findZone.median = vec[vsz/2]; - m_findZone.p75 = vec[3 * vszQuarter]; + m_findZone.p75 = vec[3 * (vsz / 4)]; m_findZone.p90 = vec[vsz / 10 * 9]; m_findZone.total = total; m_findZone.sortedNum = i;