From 393e522a8873064b597d28c6d7e920c9928e014d Mon Sep 17 00:00:00 2001 From: Wolfgang Wiedmeyer Date: Fri, 13 Jan 2017 11:35:31 +0100 Subject: Revert "i9300: libsensors: use CLOCK_BOOTTIME, not CLOCK_MONOTONIC" This reverts commit 6eaec4905ca050b6eff728c40e81186b194a59d5. --- libsensors/SensorBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.1