diff --git a/src/c/main.c b/src/c/main.c index 34212ec..170f191 100644 --- a/src/c/main.c +++ b/src/c/main.c @@ -379,7 +379,7 @@ static void init() { // get sleep time (UNIX timestamp) 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) { s_sleep_data_accessible = true; update_sleep_time(start, end);