summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
authorSimon Shields <keepcalm444@gmail.com>2016-03-12 21:58:06 +1100
committertilaksidduram <tilaksidduram@gmail.com>2016-04-13 21:23:49 +0530
commit5c57255274204141f462a6c3eca19b406f70b219 (patch)
tree3de57c8524ce962072559c53e9a887cf279eff36 /libsensors
parent0fc28367115f458c14e16240acf7f76efbb6d9df (diff)
downloaddevice_samsung_n7100-5c57255274204141f462a6c3eca19b406f70b219.zip
device_samsung_n7100-5c57255274204141f462a6c3eca19b406f70b219.tar.gz
device_samsung_n7100-5c57255274204141f462a6c3eca19b406f70b219.tar.bz2
n7100: 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 77c6865..5742ed2 100644
--- a/libsensors/SensorBase.cpp
+++ b/libsensors/SensorBase.cpp
@@ -88,7 +88,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;
}