From a683b7d99c68373db91e46b4fcebdfb8b3a7aa0f Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 11 Nov 2024 14:21:50 -0800 Subject: [PATCH] sensord: increase time jump tolerance diffs on the order of ~5ms are somewhat common and false positives --- system/sensord/sensors_qcom2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/sensord/sensors_qcom2.cc b/system/sensord/sensors_qcom2.cc index 532e28053f..f9f51539c9 100644 --- a/system/sensord/sensors_qcom2.cc +++ b/system/sensord/sensors_qcom2.cc @@ -71,7 +71,7 @@ void interrupt_loop(std::vector> sensors) { uint64_t cur_offset = nanos_since_epoch() - nanos_since_boot(); uint64_t diff = cur_offset > offset ? cur_offset - offset : offset - cur_offset; - if (diff > 1*1e6) { // 1ms + if (diff > 10*1e6) { // 10ms LOGW("time jumped: %lu %lu", cur_offset, offset); offset = cur_offset;