summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-13 11:35:31 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-13 11:35:31 +0100
commit393e522a8873064b597d28c6d7e920c9928e014d (patch)
treeec0fea925feb40dc5cdec6e9cfd0d7006daaa481
parente7e8f7d29063df2017d419a898fe877b56b14653 (diff)
downloaddevice_samsung_i9300-393e522a8873064b597d28c6d7e920c9928e014d.zip
device_samsung_i9300-393e522a8873064b597d28c6d7e920c9928e014d.tar.gz
device_samsung_i9300-393e522a8873064b597d28c6d7e920c9928e014d.tar.bz2
Revert "i9300: libsensors: use CLOCK_BOOTTIME, not CLOCK_MONOTONIC"
This reverts commit 6eaec4905ca050b6eff728c40e81186b194a59d5.
-rw-r--r--libsensors/SensorBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsensors/SensorBase.cpp b/libsensors/SensorBase.cpp
index 3790f81..f08ffb7 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_BOOTTIME, &t);
+ clock_gettime(CLOCK_MONOTONIC, &t);
return int64_t(t.tv_sec)*1000000000LL + t.tv_nsec;
}