diff --git a/rtt/Activity.cpp b/rtt/Activity.cpp index effd66471..b61ca5b62 100644 --- a/rtt/Activity.cpp +++ b/rtt/Activity.cpp @@ -230,8 +230,8 @@ namespace RTT else if (overruns != 0) { --overruns; } - if ( !mabswaitpolicy && wakeup < now ) { - wakeup = wakeup + ((now-wakeup)/nsperiod+1)*nsperiod; // assumes that (now-wakeup)/nsperiod rounds down ! + if ( !mabswaitpolicy ) { + wakeup = now + nsperiod; } mtimeout = true; }