chiark / gitweb /
tree-wide: fall back to now(CLOCK_MONOTONIC) if CLOCK_BOOTTIME unsupported (#3037)
[elogind.git] / src / libelogind / sd-event / sd-event.c
index 34d91d8444ab6d36fe3d5ac1e3733443ed605af7..52ecb8701bb233fd2e09bb163fd7221be098d73f 100644 (file)
@@ -2547,7 +2547,7 @@ _public_ int sd_event_wait(sd_event *e, uint64_t timeout) {
         }
 
         dual_timestamp_get(&e->timestamp);
-        e->timestamp_boottime = now(CLOCK_BOOTTIME);
+        e->timestamp_boottime = now(clock_boottime_or_monotonic());
 
         for (i = 0; i < m; i++) {