chiark / gitweb /
time-util: use dual_timestamp_get()
[elogind.git] / src / basic / time-util.c
index 34061fea9e51785eb974f2671cf6f73b3134956c..28b20f41805379dd6661974f62c3cfe141805d80 100644 (file)
@@ -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)