summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-02-06 14:38:16 +0100
committerLennart Poettering <lennart@poettering.net>2016-02-06 14:38:16 +0100
commitb1f047d6bae741355f3eb8416b0b912408836c4f (patch)
tree3001ff078a952bc955a99adbda6ae0895eec69f1
parent421180379fa6b57a68f26315c7af476487dfa2f0 (diff)
parent0345d252932acadc6d93ccfc24227fced2a69f03 (diff)
Merge pull request #2540 from 0xAX/use-dual-timestamp-get-in-timeutil
time-util: use dual_timestamp_get()
-rw-r--r--src/basic/time-util.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/basic/time-util.c b/src/basic/time-util.c
index bfc7cf870c..293442cf0e 100644
--- a/src/basic/time-util.c
+++ b/src/basic/time-util.c
@@ -117,9 +117,8 @@ dual_timestamp* dual_timestamp_from_boottime_or_monotonic(dual_timestamp *ts, us
ts->realtime = ts->monotonic = USEC_INFINITY;
return ts;
}
- ts->realtime = now(CLOCK_REALTIME);
- ts->monotonic = now(CLOCK_MONOTONIC);
+ dual_timestamp_get(ts);
delta = (int64_t) now(clock_boottime_or_monotonic()) - (int64_t) u;
if ((int64_t) ts->realtime > delta)