fix interval start before end in TimewarpOperator

This commit is contained in:
Xavier Léauté 2014-09-05 10:55:17 -07:00
parent 280681e84b
commit 5dd23b19c3
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ public class TimewarpOperator<T> implements PostProcessingOperator<T>
final Interval interval = query.getIntervals().get(0); final Interval interval = query.getIntervals().get(0);
final Interval modifiedInterval = new Interval( final Interval modifiedInterval = new Interval(
interval.getStartMillis() + offset, Math.min(interval.getStartMillis() + offset, now + offset),
Math.min(interval.getEndMillis() + offset, now + offset) Math.min(interval.getEndMillis() + offset, now + offset)
); );
return Sequences.map( return Sequences.map(