From 0cfd82c1131e1a6792eac2734b27d4890ccfe9b5 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Sat, 10 Sep 2011 18:33:23 +1000 Subject: [PATCH] Flow rate needs min/max calcs --- SleepLib/session.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SleepLib/session.cpp b/SleepLib/session.cpp index 075f1632..dc43e172 100644 --- a/SleepLib/session.cpp +++ b/SleepLib/session.cpp @@ -412,11 +412,12 @@ void Session::UpdateSummaries() QHash >::iterator c; for (c=eventlist.begin();c!=eventlist.end();c++) { id=c.key(); - if ((id==CPAP_FlowRate) || (id==CPAP_MaskPressure)) continue; if ((channel[id].channeltype()==CT_Event) || (channel[id].channeltype()==CT_Graph)) { //sum(id); // avg calculates this and cnt. min(id); max(id); + if ((id==CPAP_FlowRate) || (id==CPAP_MaskPressure)) continue; + cph(id); sph(id); avg(id);