From 8d2654796d047f9838dfbfa5dc0b7df8aefe281a Mon Sep 17 00:00:00 2001 From: LoudSnorer Date: Fri, 1 Jul 2022 09:15:18 -0400 Subject: [PATCH] Fix Overview Display of Resmed Oximeter Events --- oscar/Graphs/gSessionTimesChart.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oscar/Graphs/gSessionTimesChart.cpp b/oscar/Graphs/gSessionTimesChart.cpp index 5bec0b86..1a51495e 100644 --- a/oscar/Graphs/gSessionTimesChart.cpp +++ b/oscar/Graphs/gSessionTimesChart.cpp @@ -350,6 +350,7 @@ void gSummaryChart::populate(Day * day, int idx) auto & slices = cache[idx]; float hours = day->hours(m_machtype); + if ((hours==0) && (m_machtype != MT_CPAP)) hours = day->hours(); float base = 0; for (auto & item : calcitems) { @@ -1323,3 +1324,4 @@ QString gAHIChart::tooltipData(Day *day, int idx) } return QString("\n%1: %2").arg(STR_TR_AHI).arg(float(total) / hour,0,'f',2)+txt; } +