1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

udev: add usec_add() at one more place

This commit is contained in:
Yu Watanabe 2021-06-17 15:41:20 +09:00
parent 0744e74c52
commit 92fd70addf

View File

@ -890,7 +890,7 @@ static int event_queue_start(Manager *manager) {
assert_se(sd_event_now(manager->event, CLOCK_MONOTONIC, &usec) >= 0);
/* check for changed config, every 3 seconds at most */
if (manager->last_usec == 0 ||
usec - manager->last_usec > 3 * USEC_PER_SEC) {
usec > usec_add(manager->last_usec, 3 * USEC_PER_SEC)) {
if (udev_rules_check_timestamp(manager->rules) ||
udev_builtin_validate())
manager_reload(manager);