Check for sleep sessions a full 48 hours into the past
This commit is contained in:
+1
-1
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user