From b463752774fc042258e8d6d3abd2c8193ef602a8 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Mon, 3 Apr 2023 19:07:03 -0700 Subject: [PATCH] Increase time until sleep and reduce watchdog pace. --- app/src/main/java/net/voussoir/trkpt/TrackerService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/voussoir/trkpt/TrackerService.kt b/app/src/main/java/net/voussoir/trkpt/TrackerService.kt index cdff4b5..eb88029 100644 --- a/app/src/main/java/net/voussoir/trkpt/TrackerService.kt +++ b/app/src/main/java/net/voussoir/trkpt/TrackerService.kt @@ -58,9 +58,9 @@ class TrackerService: Service() var gave_up_at: Long = 0 var arrived_at_home: Long = 0 var location_interval: Long = 0 - val TIME_UNTIL_SLEEP: Long = 2 * Keys.ONE_MINUTE_IN_MILLISECONDS + val TIME_UNTIL_SLEEP: Long = 5 * Keys.ONE_MINUTE_IN_MILLISECONDS val TIME_UNTIL_DEAD: Long = 3 * Keys.ONE_MINUTE_IN_MILLISECONDS - val WATCHDOG_INTERVAL: Long = 30 * Keys.ONE_SECOND_IN_MILLISECONDS + val WATCHDOG_INTERVAL: Long = 61 * Keys.ONE_SECOND_IN_MILLISECONDS private val RECENT_TRKPT_COUNT = 3600 private val DISPLACEMENT_LOCATION_COUNT = 5 lateinit var recent_displacement_locations: Deque