From 6261752022049ba5ad2a35ed18ea6b1dea1e5e44 Mon Sep 17 00:00:00 2001 From: sawinglogz <3787776-sawinglogz@users.noreply.gitlab.com> Date: Tue, 28 Apr 2020 13:00:58 -0400 Subject: [PATCH] Fix zero AHI in CSV session export when there are multiple slices. This only affected PRS1, and it seems like the other places where the broken Session::hours() result was used were: - GT_SESSIONS, which seems to be unused - settings_wavg, where it had no effect The other uses of Settings::hours() were where there was only a single slice, in which case it returned the right result: - gSessionTimesChar::paint (the one still in use) - Icon loader - Resmed loader --- Htmldocs/release_notes.html | 1 + oscar/SleepLib/session.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Htmldocs/release_notes.html b/Htmldocs/release_notes.html index 83b4b468..24050842 100644 --- a/Htmldocs/release_notes.html +++ b/Htmldocs/release_notes.html @@ -24,6 +24,7 @@
  • [new] Support AVAPS in the Overview pressure chart.
  • [fix] Fix missing bars in the Overview pressure chart for Philips Respironics devices.
  • [fix] Add missing Philips Respironics pressure channels to CSV export.
  • +
  • [fix] Fix zero Philips Respironics AHI in CSV session export.
  • [fix] Add support for the Bi-Flex lock setting on pre-DreamStation ventilators.
  • [fix] Fix the pressure waveform scale for the BiPAP autoSV Advanced 30 (960T)
  • [fix] Add support for rise time mode on DreamStation BiPAP devices (600X-700X).
  • diff --git a/oscar/SleepLib/session.h b/oscar/SleepLib/session.h index 80a167a5..4350dbdc 100644 --- a/oscar/SleepLib/session.h +++ b/oscar/SleepLib/session.h @@ -194,6 +194,7 @@ class Session t += slice.end - slice.start; } } + t = t / 3600000.0; } return t; }