1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-13 17:18:18 +03:00

timer: Use dual_timestamp_is_set() in one more place

This commit is contained in:
Daan De Meyer 2023-05-24 11:41:37 +02:00
parent 6546045fa0
commit e21f75afcd

View File

@ -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;