diff --git a/kernel/clock.cpp b/kernel/clock.cpp index c5ae5144..8cfb2d1a 100644 --- a/kernel/clock.cpp +++ b/kernel/clock.cpp @@ -277,7 +277,7 @@ struct timespec Clock::SleepUntil(struct timespec expiration) struct timespec now = current_time; UnlockClock(); - if ( timespec_le(now, expiration) ) + if ( timespec_le(expiration, now) ) break; if ( Signal::IsPending() )