From d625adc71fbcb6f674f8f6a8552ebaac10b83b41 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Wed, 13 Jul 2011 00:20:49 +1000 Subject: [PATCH] Fixed APAP Pressure Average --- SleepLib/loader_plugins/prs1_loader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SleepLib/loader_plugins/prs1_loader.cpp b/SleepLib/loader_plugins/prs1_loader.cpp index 3d586811..1f668e08 100644 --- a/SleepLib/loader_plugins/prs1_loader.cpp +++ b/SleepLib/loader_plugins/prs1_loader.cpp @@ -315,10 +315,10 @@ int PRS1Loader::OpenMachine(Machine *m,QString path,Profile *profile) sess->summary[CPAP_ClearAirway]=sess->count_events(CPAP_ClearAirway); sess->summary[CPAP_RERA]=sess->count_events(CPAP_RERA); sess->summary[CPAP_FlowLimit]=sess->count_events(CPAP_FlowLimit); + sess->summary[CPAP_VSnore]=sess->count_events(CPAP_VSnore); //} sess->summary[CPAP_CSR]=sess->sum_event_field(CPAP_CSR,0); - sess->summary[CPAP_VSnore]=sess->count_events(CPAP_VSnore); sess->summary[CPAP_Snore]=sess->sum_event_field(CPAP_Snore,0); @@ -349,8 +349,8 @@ int PRS1Loader::OpenMachine(Machine *m,QString path,Profile *profile) } else { - sess->summary[CPAP_PressureMedian]=sess->avg_event_field(CPAP_Pressure,0); - //sess->summary[CPAP_PressureAverage]=sess->weighted_avg_event_field(CPAP_Pressure,0); + sess->summary[CPAP_PressureMedian]=sess->weighted_avg_event_field(CPAP_Pressure,0); + sess->summary[CPAP_PressureAverage]=sess->weighted_avg_event_field(CPAP_Pressure,0); sess->summary[CPAP_PressureMinAchieved]=sess->min_event_field(CPAP_Pressure,0); sess->summary[CPAP_PressureMaxAchieved]=sess->max_event_field(CPAP_Pressure,0); if (sess->summary.find(CPAP_PressureMin)==sess->summary.end()) {