fixup! percentiles p75, p90 for FindZone view

This commit is contained in:
wernhervondata 2024-11-17 10:26:24 +01:00
parent cc0f158c16
commit b9b808ca12

View File

@ -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;