mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Fix firing of absolute clocks.
This commit is contained in:
parent
dbe6b32b1f
commit
3d48c7f658
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ void Clock::TriggerAbsolute() // Lock acquired.
|
|||
{
|
||||
while ( Timer* timer = absolute_timer )
|
||||
{
|
||||
if ( timespec_lt(timer->value.it_value, current_time) )
|
||||
if ( timespec_lt(current_time, timer->value.it_value) )
|
||||
break;
|
||||
if ( (absolute_timer = absolute_timer->next_timer) )
|
||||
absolute_timer->prev_timer = NULL;
|
||||
|
|
Loading…
Reference in a new issue