diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-24 11:41:37 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-05-24 11:41:37 +0200 |
commit | e21f75afcd95a46261a36a2614712eff6bc119f4 (patch) | |
tree | 33efdcfa5f9686175eeb195d408e7d73a69ca72b /src/core | |
parent | core/timer: Always use inactive_exit_timestamp if it is set (diff) | |
download | systemd-e21f75afcd95a46261a36a2614712eff6bc119f4.tar.xz systemd-e21f75afcd95a46261a36a2614712eff6bc119f4.zip |
timer: Use dual_timestamp_is_set() in one more place
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/timer.c b/src/core/timer.c index 4b8a163512..aab376e5cc 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -399,7 +399,7 @@ static void timer_enter_waiting(Timer *t, bool time_change) { * to that. If we don't, just start from * the activation time. */ - if (t->last_trigger.realtime > 0) + if (dual_timestamp_is_set(&t->last_trigger)) b = t->last_trigger.realtime; else if (dual_timestamp_is_set(&UNIT(t)->inactive_exit_timestamp)) b = UNIT(t)->inactive_exit_timestamp.realtime; |