summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-03-12 21:58:06 +1100
committerSimon Shields <keepcalm444@gmail.com>2016-03-13 00:12:57 +1100
commit6eaec4905ca050b6eff728c40e81186b194a59d5 (patch)
tree154a29bdcc2c7d72a78835b23a8bd55d58c78172 /libsensors
parent1ea8f299e6b9c46eea55a9fa6ebee88faf91220e (diff)
downloaddevice_samsung_i9300-6eaec4905ca050b6eff728c40e81186b194a59d5.zip
device_samsung_i9300-6eaec4905ca050b6eff728c40e81186b194a59d5.tar.gz
device_samsung_i9300-6eaec4905ca050b6eff728c40e81186b194a59d5.tar.bz2
i9300: libsensors: use CLOCK_BOOTTIME, not CLOCK_MONOTONIC
Change-Id: Ib3d5596e694ff553ed843cc7ff3525c73944ef6c
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/SensorBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsensors/SensorBase.cpp b/libsensors/SensorBase.cpp
index f08ffb7..3790f81 100644
--- a/libsensors/SensorBase.cpp
+++ b/libsensors/SensorBase.cpp
@@ -86,7 +86,7 @@ bool SensorBase::hasPendingEvents() const {
int64_t SensorBase::getTimestamp() {
struct timespec t;
t.tv_sec = t.tv_nsec = 0;
- clock_gettime(CLOCK_MONOTONIC, &t);
+ clock_gettime(CLOCK_BOOTTIME, &t);
return int64_t(t.tv_sec)*1000000000LL + t.tv_nsec;
}