Fix FPIcon summary-only AHI overview display

This commit is contained in:
Mark Watkins 2014-07-02 15:22:28 +10:00
parent b6d4b8cd99
commit f03ab85da5

View File

@ -711,8 +711,16 @@ bool FPIconLoader::OpenSummary(Machine *mach, QString filename, Profile *profile
sess->really_set_first(qint64(ts) * 1000L); sess->really_set_first(qint64(ts) * 1000L);
sess->really_set_last(qint64(ts + usage) * 1000L); sess->really_set_last(qint64(ts + usage) * 1000L);
sess->SetChanged(true); sess->SetChanged(true);
sess->setCount(CPAP_Obstructive, j2); sess->setCount(CPAP_Obstructive, j2);
sess->setCph(CPAP_Obstructive, j2 / (float(usage)/3600.00));
sess->setCount(CPAP_Hypopnea, j3); sess->setCount(CPAP_Hypopnea, j3);
sess->setCph(CPAP_Hypopnea, j3 / (float(usage)/3600.00));
sess->setCount(CPAP_FlowLimit, j4);
sess->setCph(CPAP_FlowLimit, j4 / (float(usage)/3600.00));
SessDate.insert(date, sess); SessDate.insert(date, sess);
// sess->setCount(CPAP_Obstructive,j1); // sess->setCount(CPAP_Obstructive,j1);