X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Ftime-util.c;h=28b20f41805379dd6661974f62c3cfe141805d80;hp=34061fea9e51785eb974f2671cf6f73b3134956c;hb=efd35b9f3dcb9b08e991d56a686d41088e15841c;hpb=69039ad66f42e4314977b5835b308e4136f59734 diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 34061fea9..28b20f418 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -112,9 +112,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)