Fix waiting for absolute time on clocks.
This commit is contained in:
parent
1206113425
commit
e20dd6ed06
|
@ -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() )
|
||||
|
|
Loading…
Reference in New Issue