Commit 720fac7f authored by Rafaël Carré's avatar Rafaël Carré

Fixes order of operands in a substraction.

courmisch, you make too much, it's time to have a rest
parent 33cae442
......@@ -237,7 +237,7 @@ void mwait( mtime_t date )
clock_nanosleep( CLOCK_REALTIME, TIMER_ABSTIME, &ts, NULL );
#else
mtime_t delay = mdate() - date;
mtime_t delay = date - mdate();
if( delay > 0 )
msleep( delay );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment