summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurabh Srivastava <ssrivast@codeaurora.org>2021-10-01 18:23:35 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2021-10-04 04:28:16 -0700
commit58c3ca45bd856a600b61ec9b4426bca640088cdd (patch)
tree460c29292cf56ad69781baecf5ea25ee9ca0786e
parent918de09dc976a5617bb50021b21d291be5023d3c (diff)
Increasing boot_time and real_time acceptable variation
Increasing acceptable delta between boot time and real time used while computing location elapsed realtime in order to accomodate older targets. CRs-Fixed: 3049971 Change-Id: I5e3fff76c9fe5d0bc7cb2abda700ea20ac75d63c
-rw-r--r--core/LocApiBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/LocApiBase.cpp b/core/LocApiBase.cpp
index 6a0ff84..860da2e 100644
--- a/core/LocApiBase.cpp
+++ b/core/LocApiBase.cpp
@@ -1034,7 +1034,7 @@ bool ElapsedRealtimeEstimator::getCurrentTime(
struct timespec sinceBootTime;
struct timespec sinceBootTimeTest;
bool clockGetTimeSuccess = false;
- const uint32_t MAX_TIME_DELTA_VALUE_NANOS = 10000;
+ const uint32_t MAX_TIME_DELTA_VALUE_NANOS = 15000;
const uint32_t MAX_GET_TIME_COUNT = 20;
/* Attempt to get CLOCK_REALTIME and CLOCK_BOOTIME in succession without an interruption
or context switch (for up to MAX_GET_TIME_COUNT times) to avoid errors in the calculation */