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
(cherry picked from commit e21f75afcd95a46261a36a2614712eff6bc119f4)

Related: #1719364
  • Loading branch information
DaanDeMeyer authored and dtardon committed May 31, 2023
1 parent d245ad8 commit db767ab
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 @@ -366,7 +366,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 db767ab

Please sign in to comment.