Fix waiting for absolute time on clocks.

This commit is contained in:
Jonas 'Sortie' Termansen 2014-10-06 14:21:28 +02:00
parent 1206113425
commit e20dd6ed06
1 changed files with 1 additions and 1 deletions

View File

@ -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() )