diff --git a/SleepLib/session.cpp b/SleepLib/session.cpp index 8926b0d2..5ed30eab 100644 --- a/SleepLib/session.cpp +++ b/SleepLib/session.cpp @@ -142,7 +142,7 @@ double Session::percentile(MachineCode mc,int field,double percent) if (a==b) return a; //double c=(b-a); //double d=c*q; - return array[j]+q; + return a;//array[j]+q; } double Session::weighted_avg_event_field(MachineCode mc,int field) diff --git a/daily.cpp b/daily.cpp index cb4e5cfe..33845628 100644 --- a/daily.cpp +++ b/daily.cpp @@ -495,7 +495,7 @@ void Daily::Load(QDate date) float vsi=cpap->count(CPAP_VSnore)/cpap->hours(); float fli=cpap->count(CPAP_FlowLimit)/cpap->hours(); - // float p90=cpap->percentile(CPAP_Pressure,0,0.9); + float p90=cpap->percentile(CPAP_Pressure,0,0.9); eap90=cpap->percentile(CPAP_EAP,0,0.9); iap90=cpap->percentile(CPAP_IAP,0,0.9); QString submodel=tr("Unknown Model"); @@ -558,7 +558,7 @@ void Daily::Load(QDate date) html+="