mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-06 19:20:45 +00:00
Add missing PRS1UnknownDurationEvent entries to F0 supported events.
Also add a debug message when a session is skipped due to length or age (due to preferences).
This commit is contained in:
parent
fda9fcd116
commit
db1df4eeef
@ -3187,6 +3187,7 @@ static const QVector<PRS1ParsedEventType> ParsedEventsF0V23 = {
|
|||||||
PRS1HypopneaEvent::TYPE,
|
PRS1HypopneaEvent::TYPE,
|
||||||
PRS1FlowLimitationEvent::TYPE,
|
PRS1FlowLimitationEvent::TYPE,
|
||||||
PRS1VibratorySnoreEvent::TYPE,
|
PRS1VibratorySnoreEvent::TYPE,
|
||||||
|
PRS1UnknownDurationEvent::TYPE,
|
||||||
PRS1PeriodicBreathingEvent::TYPE,
|
PRS1PeriodicBreathingEvent::TYPE,
|
||||||
PRS1LargeLeakEvent::TYPE,
|
PRS1LargeLeakEvent::TYPE,
|
||||||
PRS1TotalLeakEvent::TYPE,
|
PRS1TotalLeakEvent::TYPE,
|
||||||
@ -3385,6 +3386,7 @@ static const QVector<PRS1ParsedEventType> ParsedEventsF0V4 = {
|
|||||||
PRS1HypopneaEvent::TYPE,
|
PRS1HypopneaEvent::TYPE,
|
||||||
PRS1FlowLimitationEvent::TYPE,
|
PRS1FlowLimitationEvent::TYPE,
|
||||||
PRS1VibratorySnoreEvent::TYPE,
|
PRS1VibratorySnoreEvent::TYPE,
|
||||||
|
PRS1UnknownDurationEvent::TYPE,
|
||||||
PRS1PeriodicBreathingEvent::TYPE,
|
PRS1PeriodicBreathingEvent::TYPE,
|
||||||
PRS1LargeLeakEvent::TYPE,
|
PRS1LargeLeakEvent::TYPE,
|
||||||
PRS1TotalLeakEvent::TYPE,
|
PRS1TotalLeakEvent::TYPE,
|
||||||
@ -3585,6 +3587,7 @@ static const QVector<PRS1ParsedEventType> ParsedEventsF0V6 = {
|
|||||||
PRS1HypopneaEvent::TYPE,
|
PRS1HypopneaEvent::TYPE,
|
||||||
PRS1FlowLimitationEvent::TYPE,
|
PRS1FlowLimitationEvent::TYPE,
|
||||||
PRS1VibratorySnoreEvent::TYPE,
|
PRS1VibratorySnoreEvent::TYPE,
|
||||||
|
PRS1UnknownDurationEvent::TYPE,
|
||||||
PRS1PeriodicBreathingEvent::TYPE,
|
PRS1PeriodicBreathingEvent::TYPE,
|
||||||
PRS1LargeLeakEvent::TYPE,
|
PRS1LargeLeakEvent::TYPE,
|
||||||
PRS1TotalLeakEvent::TYPE,
|
PRS1TotalLeakEvent::TYPE,
|
||||||
|
@ -302,6 +302,7 @@ bool Machine::AddSession(Session *s)
|
|||||||
if (profile->session->ignoreOlderSessions()) {
|
if (profile->session->ignoreOlderSessions()) {
|
||||||
qint64 ignorebefore = profile->session->ignoreOlderSessionsDate().toMSecsSinceEpoch();
|
qint64 ignorebefore = profile->session->ignoreOlderSessionsDate().toMSecsSinceEpoch();
|
||||||
if (s->last() < ignorebefore) {
|
if (s->last() < ignorebefore) {
|
||||||
|
qDebug() << s->session() << "Ignoring old session";
|
||||||
skipped_sessions++;
|
skipped_sessions++;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -382,6 +383,7 @@ bool Machine::AddSession(Session *s)
|
|||||||
|
|
||||||
if (session_length < ignore_sessions) {
|
if (session_length < ignore_sessions) {
|
||||||
// keep the session to save importing it again, but don't add it to the day record this time
|
// keep the session to save importing it again, but don't add it to the day record this time
|
||||||
|
qDebug() << s->session() << "Ignoring short session";
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user