1
0
Fork 0
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:
Meisaka Yukara 2016-01-22 21:17:05 +01:00 committed by Jonas 'Sortie' Termansen
parent dbe6b32b1f
commit 3d48c7f658

View file

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