mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
sd-event: use usec_add()
This commit is contained in:
parent
06e131477d
commit
a595fb5ca9
@ -3677,8 +3677,8 @@ static int arm_watchdog(sd_event *e) {
|
||||
assert(e->watchdog_fd >= 0);
|
||||
|
||||
t = sleep_between(e,
|
||||
e->watchdog_last + (e->watchdog_period / 2),
|
||||
e->watchdog_last + (e->watchdog_period * 3 / 4));
|
||||
usec_add(e->watchdog_last, (e->watchdog_period / 2)),
|
||||
usec_add(e->watchdog_last, (e->watchdog_period * 3 / 4)));
|
||||
|
||||
timespec_store(&its.it_value, t);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user