Skip to content

Commit

Permalink
timer: Use dual_timestamp_is_set() in one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed May 24, 2023
1 parent 6546045 commit e21f75a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e21f75a

Please sign in to comment.