Decrease response time to sensor status updates
Increases time between reacting to sensor status updates
from 10ms to 20ms. A 10ms delay greatly reduced the chances
of running out of memory during peak system loads, but things
still crash occasionally so increasing by another 10ms
should squash the rest of the crashes.
Bug: 131769970
Test: compile only
Change-Id: I28d4ce33cf251457913490381196b3482c808c17
diff --git a/platform/slpi/smgr/platform_sensor.cc b/platform/slpi/smgr/platform_sensor.cc
index 216cbbb..b8b90e9 100644
--- a/platform/slpi/smgr/platform_sensor.cc
+++ b/platform/slpi/smgr/platform_sensor.cc
@@ -104,7 +104,7 @@
//! The delay in nanoseconds between receiving a sensor status change
//! and updating the sensor status.
-constexpr Nanoseconds kStatusDelayIntervalNanos = Milliseconds(10);
+constexpr Nanoseconds kStatusDelayIntervalNanos = Milliseconds(20);
smr_client_hndl gPlatformSensorServiceSmrClientHandle;
smr_client_hndl gPlatformSensorInternalServiceSmrClientHandle;