Check for sleep sessions a full 48 hours into the past

This commit is contained in:
2026-07-14 19:56:55 -04:00
parent d821f343b4
commit 8f9c79f641
+1 -1
View File
@@ -379,7 +379,7 @@ static void init() {
// get sleep time (UNIX timestamp) // get sleep time (UNIX timestamp)
time_t end = time(NULL); time_t end = time(NULL);
time_t start = end - (SECONDS_PER_DAY * 1.5); time_t start = end - (SECONDS_PER_DAY * 2);
if (health_service_any_activity_accessible(HealthActivitySleep, start, end) == HealthServiceAccessibilityMaskAvailable) { if (health_service_any_activity_accessible(HealthActivitySleep, start, end) == HealthServiceAccessibilityMaskAvailable) {
s_sleep_data_accessible = true; s_sleep_data_accessible = true;
update_sleep_time(start, end); update_sleep_time(start, end);