sd-device: use right clock when comparing initialization usec
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Apr 2021 13:56:03 +0000 (15:56 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 6 May 2021 12:51:08 +0000 (14:51 +0200)
commit873ad71291e942054dd96ca1a9000cc98f21487a
tree02df5c8828a8f346d5e4a993f22aa5ef4350d8c6
parentd6b0efcdd83a937363267ed751fd9a1085505394
sd-device: use right clock when comparing initialization usec

we actually use CLOCK_MONOTONIC for the timestamp, hence when
comparing/subtracting it from the current time, also use
CLOCK_MONOTONIC.

(cherry picked from commit 02ef01ade3b16c05dfc8698181d7f562f4934ef3)
src/libsystemd/sd-device/sd-device.c