You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2023/06/28 15:23:46 UTC
[celix] 30/42: Fix wrong clock in celixThreadCondition_getDelayedTime
This is an automated email from the ASF dual-hosted git repository.
pnoltes pushed a commit to branch feature/scheduled_event_on_event_thread
in repository https://gitbox.apache.org/repos/asf/celix.git
commit 4bc5fc9ff4872405ad0b70d968897c01d7852e7a
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Sun Jun 18 19:03:27 2023 +0200
Fix wrong clock in celixThreadCondition_getDelayedTime
---
libs/utils/src/celix_threads.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libs/utils/src/celix_threads.c b/libs/utils/src/celix_threads.c
index 8ba9cd63..d33d58fd 100644
--- a/libs/utils/src/celix_threads.c
+++ b/libs/utils/src/celix_threads.c
@@ -192,7 +192,7 @@ struct timespec celixThreadCondition_getDelayedTime(double delayInSeconds) {
gettimeofday(&tv, NULL);
TIMEVAL_TO_TIMESPEC(&tv, &now);
#else
- struct timespec now = celix_gettime(CLOCK_REALTIME);
+ struct timespec now = celix_gettime(CLOCK_MONOTONIC);
#endif
if (delayInSeconds == 0) {
return now;