Core: Fix timing until/next
Vicki Pfau vi@endrift.com
Thu, 22 Jun 2017 02:18:40 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/core/timing.c
→
src/core/timing.c
@@ -89,9 +89,9 @@ struct mTimingEvent* next = timing->root;
if (!next) { return INT_MAX; } - return next->when - timing->masterCycles; + return next->when - timing->masterCycles - *timing->relativeCycles; } int32_t mTimingUntil(const struct mTiming* timing, const struct mTimingEvent* event) { - return event->when - timing->masterCycles; + return event->when - timing->masterCycles - *timing->relativeCycles; }